On 11/17/2010 03:06 PM, anna.richa...@csiro.au wrote:
Hi,
I hope this is a simple question. I am having trouble changing the scale of a
secondary y-axis on a barplot. When I run the code below the limits set for the
first axis are always applied to the second axis as well. I am using the lates
Hi Anna,
>> How can I change the barplot so that the left hand axis scales from 0 to
>> 15 and the right hand
>> axis from 0 to 5?
Try this:
par(mfrow=c(1,1), mai=c(1.0,1.0,1.0,1.0))
Plot1<-barplot(rbind(Y1,Y2), beside=T, axes=T, names.arg=c("a","b"),
ylim=c(0,15), xlim=c(1,9), space=c(0,1), c
Hi,
I hope this is a simple question. I am having trouble changing the scale of a
secondary y-axis on a barplot. When I run the code below the limits set for the
first axis are always applied to the second axis as well. I am using the latest
R version 2.12.0.
For example, if I have 3 vectors
3 matches
Mail list logo