Displaying 6 results from an estimated 6 matches for "lwds".
Did you mean:
lds
2004 Mar 17
0
Plot 2 time series with different y axes (left and right)
...--------------------------------
plot.yy <- function(x, yright, yleft,
yleftlim=NULL, yrightlim = NULL,
xlab = NULL, yylab=c("",""),
pch=c(1,2), col=c(1,2),
linky=F, smooth=0,
lwds=1, length=10, format="%d-%H:%M", ...
)
{
par(mar=c(5,4,4,2),oma=c(0,0,0,3))
plot(x, yright, ylim=yrightlim, axes=F,ylab="", xlab=xlab,
pch=pch[1],col=col[1], ...)
axis(4,pretty(range(yright,na.rm=T),10),col=col[1])
if (linky) lines(x,yright,co...
2017 Nov 23
2
adding percentage secondary y-axis
...], rx=D[,1], ry=D[,3])
or
plot.yy(x=D[,1],yright=D[,3], yleft=D[,2])
which allows only one x axis (see below).
Cheers
Petr
plot.yy <- function (x, yright, yleft, yleftlim = NULL, yrightlim = NULL,
xlab = NULL, yylab = list(NA, NA), pch = c(1, 2),
col = c(1,2), linky = F, smooth = 0, lwds = 1, length = 10,
format = "%d/%m", rect = NULL, type = "p", ...)
{
par(mar = c(5, 4, 4, 2), oma = c(0, 0, 0, 3))
plot(x, yright, ylim = yrightlim, axes = F, ylab = "", xlab = xlab,
pch = pch[1], col = col[1], type = type, ...)
if (!is.null(...
2017 Nov 23
0
adding percentage secondary y-axis
...], rx=D[,1], ry=D[,3])
or
plot.yy(x=D[,1],yright=D[,3], yleft=D[,2])
which allows only one x axis (see below).
Cheers
Petr
plot.yy <- function (x, yright, yleft, yleftlim = NULL, yrightlim = NULL,
xlab = NULL, yylab = list(NA, NA), pch = c(1, 2),
col = c(1,2), linky = F, smooth = 0, lwds = 1, length = 10,
format = "%d/%m", rect = NULL, type = "p", ...)
{
par(mar = c(5, 4, 4, 2), oma = c(0, 0, 0, 3))
plot(x, yright, ylim = yrightlim, axes = F, ylab = "", xlab = xlab,
pch = pch[1], col = col[1], type = type, ...)
if (!is.null(...
2003 Jan 20
3
Plotting w/multiple y-axes?
How do I plot using multiple(2) y-axes?
I have two series that use the same x-data, but have very different scales.
Appreciate any feedback,
Per Bak
2017 Nov 23
2
adding percentage secondary y-axis
Dear useRs,
I have this dataset (D) with three columns.
> dput(D)
structure(c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 20, 2.990484802, 3.005018792, 3.019552781, 3.03408677,
3.048620759, 3.063154749, 3.077688738, 3.092222727, 3.106756717,
3.121290706, 3.135824695, 3.150358684, 3.164892674, 3.179426663,
3.193960652, 3.208494642, 3.223028631, 3.23756262,
2004 Feb 24
5
r: plots
hi all
i have another probably simple question.
I have three variables say x, y and z. x and y are quite large and z is
relative small.
how can one plot the three variables on the same graph with two separate
axis?
(one for x and y and the other for z)
e.g.
x<-c(101,110,150,167,120)
y<-c(120,135,175,95,200)
z<-c(0.001, 0.15, 0.6, 0.8, 1)
regards
Allan