search for: twoord

Displaying 20 results from an estimated 42 matches for "twoord".

2009 Oct 22
1
twoord.plot y lab size
I am using twoord.plot and my Y axis units on the left y overlap. I tried using cex.axis in my par command but that only adjusted the x units, not the y. cex.axis in twoord.plot did not help. How do I adjust Y units in the twoord.plot? example: twoord.plot (lx=myear, ly=z, rx=myear, ry=sta,xlim=c(1985,2010), xlab=&q...
2010 Dec 09
2
RES: Barplot with "Independent" Lines Y axis
Oh sorry. An example say lots more than words. The data below, when submitted to twoord.plot return the mentioned error. Rain are bars and Salt lines, the bars appear and the error occurs with the salt data. Point Rain Salt Fev/03 365.6 13 Mar/03 235 18 Abr/03 115.1 18 Mai/03 47.4 18.75 Jun/03 112 15 Jul/03 156.8 17 Ago/03 66.1 15 Set/03 149.8 14 Out/03 167,1 11.5 Nov/03 269.3 17.5 D...
2013 Jun 15
2
Plotting two y-axis vs non-numeric x-axis
Hi dear all, the following code is correct. but I want to use non-numeric x-axis, for example if I replace time <- seq(0,72,6) by month <- c("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","Pag") Ofcourse I use factor(month) instead of
2009 Sep 10
1
Issue displaying DATES on a plot with two ordinates
...'2009-08-18'), format="%Y-%m-%d") x.Right <- as.Date(c('2009-08-05', '2009-08-09', '2009-08-12', '2009-08-16', '2009-08-19'), format="%Y-%m-%d") y.Left <- c(70.13, 75.1, 74.35, 78.9, 80.92) y.Right <- c(35, 45, 50, 47, 53) twoord.plot(x.Left, y.Left, x.Right, y.Right, xlab="Date", ylab="Trend 1", rylab="Trend 2", lwd=2, lcol='blue') Thanks in advance for any help, C.C. P.S. I am aware of the criticisms of these sort of graphs, but they are pretty. Also, they seem to be used a lot in...
2008 Aug 14
2
how to over-plot another variable on axis-4
Hello R Users, I am using R on Windows, I am ploting CO2 (350,380) variying with year(1993,2003) I want to over-plot rainfall (10,250) varying with year(1993,2003) on axis-4 axis-1=year(1993,2003), axis-2=CO2(350,380) axis-3=None axis-4=rainfall(10,250) Kindly help how to over-plot another variable on axis-4. Many thanks, Regards, Yogesh [[alternative HTML version deleted]]
2012 Apr 26
2
How to plot graph with different scale (y axis) on same graph?
Hi, I have my data in below format. position var1 var2 2 .1 10 3 .29 89 12 .56 100 425 .34 1234 6546 .12 21 .... ..... ..... .... ..... ......
2017 Nov 23
2
adding percentage secondary y-axis
...Eliza UoS PP ________________________________ From: PIKAL Petr <petr.pikal at precheza.cz> Sent: 23 November 2017 16:22:39 To: Eliza Botto; r-help at r-project.org Subject: RE: adding percentage secondary y-axis Hi It is usually not recommended but if 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...
2008 May 18
3
two curves at one graph
i try to use par(new=TRUE) i get them at the same graph but the y_axis and x_axis are drowen with two unevenly graduations that graph become unreadable. -- View this message in context: http://www.nabble.com/two-curves-at-one-graph-tp17307590p17307590.html Sent from the R help mailing list archive at Nabble.com.
2008 Feb 27
4
plot y1 and y2 on one graph
Dear all I have a code like x<-1:10 y1<-x+runif(10)*2 y2<-seq(0,50,length.out=10)+rnorm(10)*10 par(mfrow=c(1,2)) plot(y1~x) plot(y2~x) Now I would like to plot y1 and y2 on the same graph, with its two scales (y1 on left and y2 on rigth side). Any help are welcome. Kind regards Miltinho Brazil [[alternative HTML version deleted]]
2017 Nov 23
0
adding percentage secondary y-axis
Hi It is usually not recommended but if 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...
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,
2010 Sep 06
8
Over lay 2 scale in same plot
Hi Everyone, I have two different data set in 2 different scale. I want to plot these two data in the same plot in their respective scale. So the plot will have 2 different scale. I have added an image below to show how it should look. does any bode has any idea how this can be done. 2 different y scale in same plot..?? http://r.789695.n4.nabble.com/file/n2528661/2scale_ovelay.jpg Thanks in
2008 Dec 06
1
plotting several datasets with different scales into same plot
Dear Miss R, I wish to plot three datasets on completely different scales into one single plot. Until now I use a complicated procedure, converting the data of the second and third set into coordinates of the first plot and then adding an extra axis. Is there a way to do this more simply...? Thanking you and wishing you all an excellent Sunday! Cheers, Georg. ************************* Georg
2010 Jul 06
1
multiple time series plot with dual 'y' axes
Hello. I would like to know how to generate dual 'y' axes on a multiple time series plot. I am using ts.plot() to get the multiple time series plot, but I would like a second vertical axis on the right to include another time series on a different scale. Thanks for any help. Cheers. Jorge
2010 Sep 30
1
barplots with 2 different scales
Is there a way to create barplots with pairs of bars plotted on 2 different scales (i.e some bars would be plotted according to the scale on the y-axis on the left and other bars plotted according to a different scale on the right axis)? Thank you, Jeremy [[alternative HTML version deleted]]
2010 Dec 09
1
2 plots with different scales in the same graphical window
Dear useRs, I have two sets of data that I would like to plot in the same window, but their ranges are really different, e.g. a <- c(0.2, 0.5, 0.8, 0.3, 0.4, 0.5, 0.2, 0.2, 0.3) b <- c(100, 2000, 800, 200, 100, 50, 4, 2, 0) If I do plot(a, ty='l'); points(b, ty='l') I won't be able to see sequence b. However, if I do plot(b, ty='l'); points(a, ty='l')
2008 May 22
3
secondary axis in a plot
Hello, I want to do a plot of two series, but adding a secondary axis in the rigth side to take into account the different scales of the two series. Anyone can tell me haw can I do that in R? Thank you very much Maria -- View this message in context: http://www.nabble.com/secondary-axis-in-a-plot-tp17402079p17402079.html Sent from the R help mailing list archive at Nabble.com.
2008 Dec 10
2
2-Y-axes on same plot
Hi... Is this possible in R? I have 2-sets of data, that were collected simultaneously using 2- different data acquisition schemes. The x-values are the same for both. The y-values have different ranges (16.4-37.5 using one method, 557-634 using another). In theory, if you plot both plots on top of each other, the graphs should overlap. The problem I'm having is trying to have to
2011 Nov 28
1
Superimpose two graphs
Dear R users, I want to superimpose two graphs as well as ensure that they should have same scale with same x & y axis. I am using following command but it does not ensure same scale. *pdf(file = "../RESULTS/RS1.simulated.pdf", width = 10, height =6)* *plot(Reserves.RS, col = 1:2, screen = 1)* *par(new= TRUE)* *barplot(RS.active, axes = FALSE)* *dev.off()* * * Regards Vikram
2012 Dec 27
1
Regarding multiple axes in plots..
Hello, I'd like to draw 2 plots in one graph. Here is my code: plot(data_min1$macd,main="1 min MACD",type="l") lines(data_min1$macdsig,col="red") par(new=T) plot(data_min1$macdhist,type="h",main="") axis(4) par(new=F) It seems it works. But left axes of two graphs are over-drawn. Could you let me know how to fix it ?