search for: yylab

Displaying 15 results from an estimated 15 matches for "yylab".

Did you mean: ylab
2010 May 31
3
two questions about PLOT
...o ? the script and figure is shown as below .thanks .:) outflnm<-paste(Outdic,"meansd.jpg",sep="/") jpeg(file=outflnm, bg="transparent") legend<-c("average error","stand quare error") lgcol<-c("black","red1") par(las=1) yylab<-c("forecast error") xxlab<-c("typhoon class") llty<-c(1,3) llwd<-c(4,4) #par(bg='yellow') plot(avegrp,type='l',lty=1,col='black',lwd=4,xlab=xxlab,ylab=yylab) par(new=T) plot(sdgrp,type='l',lty=3,col='red1',xlab=xxlab,ylab=yy...
2012 Jul 10
2
how can I show the xlab and ylab information while using layout
...to draw three plot into one figure by layout and the script has been shown below. But I find R does not show the xlab and ylab information completely as shown the figure attached. How can I midify the script.? thank you . xxlab<-paste(cpmd," (",ro,"%)",sep=" ") yylab<-paste(rfmd," (",co,"%)",sep=" ") par(mar=c(3,3,1,1)) #layout(matrix(c(2,0,1,3),2,2,byrow=TRUE),widths=lcm(30), heights=lcm(25),TRUE) layout(matrix(c(2,0,1,3),2,2,byrow=TRUE),c(5,1),c(1,5),TRUE) layout.show(3) plot(data_cpmd,data_rfmd,xlab=xxlab,ylab=yylab,xlim=XX,y...
2012 Mar 08
6
how to modify the tickment of x-axis
hi I plot a series of observation data every minutes in a day as the attachment below plot(wnd,type='l',lty=1,col='red',lwd=1,xlab=xxlab,ylab=yylab,ylim=YY) In the figure, the x-axis tickment is the number of data How can I change it fore example 1h 2h 3h 4h and so on ? -- TANG Jie Email: totangjie at gmail.com Tel: 0086-2154896104 Shanghai Typhoon Institute,China
2004 Mar 17
0
Plot 2 time series with different y axes (left and right)
...into the email. I reindented the code, and wrote a fragment to experiment with it. Here it is: --------------------------------------------------------------------------- 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="...
2017 Nov 23
2
adding percentage secondary y-axis
...f you insist maybe library(plotrix) ?twoord.plot twoord.plot(lx=D[,1],ly=D[,2], 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 =...
2012 Jun 29
3
how to add the sample number in the hist figure
hi,R-users: Now I plot some data with the name(aveobsdata) in column , How can I add the some number(e,g. the sample number) in each of the column? plot(aveobsdata,type='h',lwd=line_width,col=line_col,main=titleinfo,xlab=xxlab,ylab=yylab,xaxt = "n") axis(1, at = 1:nums, label = name) --
2017 Nov 23
0
adding percentage secondary y-axis
...f you insist maybe library(plotrix) ?twoord.plot twoord.plot(lx=D[,1],ly=D[,2], 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 =...
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
2002 Jun 11
5
Different y-axes
Hi All, I have checked everything I could find abot graphics, but still cannot solve the problem. Are there any ways to make a graph that plots two lines and two different y-axes, each of them has a scale that is related to the respective line. For example, y1 has a range 1:50 and y1 ranges 0:1. The x-axe is the same for both. Thank you in advance. --- Gregor Gawron
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,
2002 Jun 17
3
Second axis in a plot
Hi to all, First of all, I prefer to tell that I am a R-newbie, so I apologize if this is a silly question (I have tried looking in the manuals, but without luck). I have two variables, y and z, that I want to plot against x in the same plot. I have done this before, using points() after plot(). But now the problem is that y and z are in different units of measurement, and their ranges are very
2009 Jan 28
2
help with plot layout
...ad.table( "16440-Alpha.txt" ) xaa <- seq(1:length(t(aa))) vv <- read.table("16440-Vanishing-Moments") vvLab <- seq(1,WavMaxNumCoef/2,1) vvCounts <- vector(length=WavMaxNumCoef/2) for(k in 1:(WavMaxNumCoef/2)) { vvCounts[k] <- length(which(vv[] == k)) } yyLab <- seq(1,length(t(vv)),2) bb <- read.table("16440-Length") bbLab <- seq(min(bb),max(bb),1) bb <- sort(t(bb)) bbCounts <- as.numeric(vector(length=(max(bb)-min(bb)+1))) for(k in 1:length(bbCounts)) { bbCounts[k] <- length(which(bb[] == (k +min(bb) -1))) } zzLa...
2012 Jul 10
0
R-help Digest, Vol 113, Issue 13
...by layout and the script has > been shown below. > But I find R does not show the xlab and ylab information completely as > shown the figure attached. > How can I midify the script.? thank you . > > xxlab<-paste(cpmd," (",ro,"%)",sep=" ") > yylab<-paste(rfmd," (",co,"%)",sep=" ") > par(mar=c(3,3,1,1)) > #layout(matrix(c(2,0,1,3),2,2,byrow=TRUE),widths=lcm(30), > heights=lcm(25),TRUE) > layout(matrix(c(2,0,1,3),2,2,byrow=TRUE),c(5,1),c(1,5),TRUE) > layout.show(3) > plot(data_cpmd,data_rfmd,x...
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
2009 Jan 28
2
t.test in a loop
Hi All, I've been having a little trouble with creating a loop that will run a a series of t.tests for inspection, Below is the code i've tried, and some checks i've looked at. I've used the get(paste()) idea as i was told previously that the use of the eval should try and be avoided. I've run a single syntax to check that my systax is correct and works without any problems