Displaying 2 results from an estimated 2 matches for "y2range".
Did you mean:
y1range
2006 Sep 28
3
complex plots using layout()
...;- demog$mji
y2 <- demog$nles
xhist <- hist(x, plot=FALSE)
y1hist <- hist(y1, plot=FALSE)
y2hist <- hist(y2, plot=FALSE)
top1 <- max(c(xhist$counts, y1hist$counts))
top2 <- max(c(xhist$counts, y2hist$counts))
xrange <- range(x,na.rm=TRUE)
y1range <- range(y1,na.rm=TRUE)
y2range <- range(y2,na.rm=TRUE)
def.par <- par(no.readonly = TRUE)
par(mfrow=c(2,2))
nf <- layout(matrix(c(2,0,1,3),2,2,byrow=TRUE), c(3,1), c(1,3), TRUE)
par(mar=c(3,3,1,1))
plot(x, y1, xlim=xrange, ylim=y1range, xlab="Age", ylab="MJI")
lines(lowess(x,y1),col=2)
par(mar=c(...
2010 Aug 24
4
how to plot y-axis on the right of x-axis
Dear List,
I have a richness data distributing across 20 N to 20 S latitude. (120 E-140
E longitude).
I would like to draw the richness in the north hemisphere and a regression
line in the plot
(x-axis: latitude, y-axis: richness in the north hemisphere).
The above demand is done using plot.
Then, south hemisphere richness and regression are required to be generated
using
the same y-axis above