[R] R: plot partial effects

2019-01-22 Thread Sebastian Heyneman
Dear All: I tried to replicate a case study described by Prof. Harrell in Chapter 7 of his Regression Modeling Strategies book, but failed on using plot to reproduce partial effects diagram in figure 7.9, Following is the code: rm(list=ls()) library(Hmisc) getHdata(counties)

Re: [R] R plot split screen in uneven panels

2018-12-13 Thread Luigi Marongiu
Thank you, that worked good. I tried to read the help for layout/split.screen but I found it confusing. On Wed, Dec 12, 2018 at 5:51 PM Bert Gunter wrote: > > Incidentally, here is another way to do what (I think) you asked using > layout(): > > m <- matrix(c(1,2,2), nrow =1) > layout(m) >

Re: [R] R plot split screen in uneven panels

2018-12-13 Thread Martin Maechler
> Bert Gunter > on Wed, 12 Dec 2018 08:51:04 -0800 writes: > Incidentally, here is another way to do what (I think) you asked using > layout(): > m <- matrix(c(1,2,2), nrow =1) > layout(m) > plot(1:10, type = "p", main ="The First Plot") > plot(10:1, type =

Re: [R] R plot split screen in uneven panels

2018-12-12 Thread Bert Gunter
Incidentally, here is another way to do what (I think) you asked using layout(): m <- matrix(c(1,2,2), nrow =1) layout(m) plot(1:10, type = "p",main = "The First Plot") plot(10:1, type = "l", main ="The Second Plot") On my device, the plots use different size fonts, point sizes, etc. and so

Re: [R] R plot split screen in uneven panels

2018-12-12 Thread Franklin Bretschneider
Dear Luigi Marongiu, Re: > Dear all, > I would like to draw two plots in the same device so that there is a > single row and two columns, with the first column being 1/3 of the > device's width. > I am creating a PNG object with width = 30 and height = 20 cm. > I know that I should use

Re: [R] R plot split screen in uneven panels

2018-12-12 Thread Bert Gunter
?layout Please read the Help file **carefully** and work through the **examples**. I cannot explain better than they. Here is code using layout() that I think does what you want: m <- matrix(1:2, nrow =1) layout(m, widths = c(1,2)) plot(1:10, type = "p",main = "The First Plot") plot(10:1, type =

[R] R plot split screen in uneven panels

2018-12-12 Thread Luigi Marongiu
Dear all, I would like to draw two plots in the same device so that there is a single row and two columns, with the first column being 1/3 of the device's width. I am creating a PNG object with width = 30 and height = 20 cm. I know that I should use split.screen or layout but I am lost with the

Re: [R] R plot-par(mfrow=c(x,y)) on multiple pages

2016-01-20 Thread Mohsen Jafarikia
Dear Jim, Your wild guess was a good guess :=) Thanks to you and Sarah for your comments. Regards, Mohsen On Wed, Jan 20, 2016 at 6:08 PM, Jim Lemon wrote: > Hi Mohsen, > I'll have a wild guess at this. I suspect that you have either calculated a > value for the ylim=

Re: [R] R plot-par(mfrow=c(x,y)) on multiple pages

2016-01-20 Thread Sarah Goslee
Use a device like pdf() or postscript() that supports multiple pages. Or start a new default device with dev.new() so you can see two figures simultaneously. Sarah On Wed, Jan 20, 2016 at 3:37 PM, Mohsen Jafarikia wrote: > Hello everyone: > > I have 12 plots that I am using

[R] R plot-par(mfrow=c(x,y)) on multiple pages

2016-01-20 Thread Mohsen Jafarikia
Hello everyone: I have 12 plots that I am using par(mfrow=c(3,2)) to have 6 of them in a single page. R only prints the 6 first graph in a single page. Any comments how I can ask R to print all 12 graphs in two pages. Thanks very much, Mohsen __

Re: [R] R plot-par(mfrow=c(x,y)) on multiple pages

2016-01-20 Thread Jim Lemon
Hi Mohsen, I'll have a wild guess at this. I suspect that you have either calculated a value for the ylim= argument or used explicit values for ylim= in the first plot, then propagated the error by copying and pasting. Jim On Thu, Jan 21, 2016 at 8:56 AM, Mohsen Jafarikia

Re: [R] R plot-par(mfrow=c(x,y)) on multiple pages

2016-01-20 Thread Sarah Goslee
On Wed, Jan 20, 2016 at 4:56 PM, Mohsen Jafarikia wrote: > Thanks very much for the comment. > > I was also wondering why all the y-axis on all 12 plots are similar to > the first plot. I have 12 plots and scale of the values for these > plots are different. It seems R is

Re: [R] R plot-par(mfrow=c(x,y)) on multiple pages

2016-01-20 Thread Mohsen Jafarikia
Thanks very much for the comment. I was also wondering why all the y-axis on all 12 plots are similar to the first plot. I have 12 plots and scale of the values for these plots are different. It seems R is using the x-axis for each individual plot correctly but y-axis is the same for all 12

Re: [R] R - PLOT - X-AXIS - DECIMALS

2014-11-20 Thread PIKAL Petr
- project.org] On Behalf Of statup r Sent: Thursday, November 20, 2014 7:33 AM To: MacQueen, Don Cc: r-help Subject: Re: [R] R - PLOT - X-AXIS - DECIMALS this got fixed when I added 3 more rows to my existing test.csv file, i.e. new file got below data, with additional 3 rows: year sale

[R] R - PLOT - X-AXIS - DECIMALS

2014-11-19 Thread statup r
I have a test.csv with two fields year and sale, with below values: year sale 20011002002200 This is what I did in R. aaa-read.csv(test.csv) plot(aaa) But when I call the above plot function why I'm getting decimals in x-axis (year) ex: 2001.0, 2002.05 Please help.

Re: [R] R - PLOT - X-AXIS - DECIMALS

2014-11-19 Thread Sarah Goslee
Hi, Since you didn't provide a reproducible example, we have no way of knowing. http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example But if I were you, I'd start with str(aaa) because my first guess is that your data import did not work as you expected. On

Re: [R] R - PLOT - X-AXIS - DECIMALS

2014-11-19 Thread MacQueen, Don
My guess is that perhaps plot(aaa$year, aaa$sale) will produce something closer to what was expected. -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 11/19/14, 8:26 AM, Sarah Goslee sarah.gos...@gmail.com wrote: Hi, Since

Re: [R] R - PLOT - X-AXIS - DECIMALS

2014-11-19 Thread statup r
this got fixed when I added 3 more rows to my existing test.csv file, i.e. new file got below data, with additional 3 rows: year sale 2001 100 2002 200 2003 300 2004 400 2005 500 What's the secret behind 5 rows , i mean is there any link between plot chart and 5

Re: [R] R plot type

2014-02-21 Thread Rui Barradas
Hello, The answer is yes, it is possible. I don't know how to plot a curved arrow but the rest should be possible to do using ?plot.default ?lines ?text And please, post to R-Help, the odds of you getting more and better answers are greater. Hope this helps, Rui Barradas Em 21-02-2014

[R] R plot

2013-08-06 Thread Mª Teresa Martinez Soriano
Hi to everyone, first of all, thanks hor this excellent service. I have a doubt in R, it looks like: I want to get a plot of my data.frame, but I have used the funtion split in this data.frame and I don't know if there exist some function which could help me, I was using for loop. The

Re: [R] R plot

2013-08-06 Thread Jose Iparraguirre
Of Mª Teresa Martinez Soriano Sent: 06 August 2013 08:43 To: r-help@r-project.org Subject: [R] R plot Hi to everyone, first of all, thanks hor this excellent service. I have a doubt in R, it looks like: I want to get a plot of my data.frame, but I have used the funtion split in this data.frame

Re: [R] R plot

2013-08-06 Thread Guanrao Chen
Try extract the individual frames first ... Thanks, Guanrao http://www.foundyo.com From: Mª Teresa Martinez Soriano teresama...@hotmail.com To: r-help@r-project.org r-help@r-project.org Sent: Tuesday, August 6, 2013 3:43 AM Subject: [R] R plot Hi

Re: [R] R plot like candlestick

2013-01-29 Thread Eik Vettorazzi
Hi Denis, there is no if, only how in R ;) how about this: rmail2-read.table(textConnection(item, min, int_1, int_2, max a, 2.5, 3, 4, 5.5 b, 2, 3.5, 4, 4.5 c, 3.5, 4, 4.5, 5),header=T,sep=,) with(rmail2,symbols(item, (int_1+ int_2)/2, boxplots=cbind(.25, int_2-int_1,

Re: [R] R plot like candlestick

2013-01-29 Thread Denis Francisci
Wonderful! Thank you Eik! I thought there was a specific package or plot to get my purpose, but your idea solves perfectly my problem. Maybe I could try to write a simple R function using your suggest, just to make fast my work. If I can get a result, I'll announce it in this list. Thank you very

Re: [R] R plot like candlestick

2013-01-29 Thread John Kane
of other possibly useful examples. John Kane Kingston ON Canada -Original Message- From: denis.franci...@gmail.com Sent: Mon, 28 Jan 2013 22:26:02 +0100 To: r-help@r-project.org Subject: [R] R plot like candlestick Hi all, I'm new on this list so I greet all. My question is: does

[R] R plot like candlestick

2013-01-28 Thread Denis Francisci
Hi all, I'm new on this list so I greet all. My question is: does exist in R a plot similar to candlestick plot but not based on xts (time series)? I have to plot a range of 4 value: for every item I have min value, max value and 2 intermediate values. I would like plot this like a candlestick,

[R] r-plot help-it prints outside frame

2012-10-10 Thread piranha piranha
Hello, i have been doing browns exponential smooting for myself and have a little trouble with plotting values: par(xpd=TRUE) plot(vector,xlab=Period,ylab=Values) legend(max(vector), legend = c(Original values, Estimated values), col=c(blue,red),lwd=0.5, cex=1, xjust=0.1, yjust=-0.3)

Re: [R] r-plot help-it prints outside frame

2012-10-10 Thread Duncan Murdoch
On 12-10-10 5:31 AM, piranha piranha wrote: Hello, i have been doing browns exponential smooting for myself and have a little trouble with plotting values: par(xpd=TRUE) The line above says allow plotting outside the frame. plot(vector,xlab=Period,ylab=Values)

Re: [R] r-plot help-it prints outside frame

2012-10-10 Thread Jessica Streicher
You could set xlim and slim when using plot() plot(vector,xlab=Period,ylab=Values,xlim=range(0,length(vector)+1),ylim=range(vector,est_vector,forecast)) i think - you forgot to provide data for the vectors :) On 10.10.2012, at 11:31, piranha piranha wrote: Hello, i have been doing browns

[R] R- plot bottom up dendrogram

2012-05-18 Thread Liu Eric
Hi I have one similarity matrix which is not 0-1 scaled. Higher values mean higher similarity in the matrix. I would like bottom-up plot. I know how to plot root up plot. Does anyone know? Br, Luffy Liu [[alternative HTML version deleted]]

[R] [R ]Plot a colored rectangle under the points of a graph

2011-10-08 Thread Heverkuhn Heverkuhn
Hello everyone, if I have: x=1:10 y=1:10 plot(x,y) and I plot a rectangle rect(4,0,6,11, col=5) it covers the points of the graph. Is there a way to draw the rectangle under the points? I was thinking the a solution could be draw an empty plot then draw the rectangle and after the points, but it

Re: [R] [R ]Plot a colored rectangle under the points of a graph

2011-10-08 Thread R. Michael Weylandt
My guess is that your intuition was correct, but you probably executed it incorrectly. Plot (usually) calls a new plotting window; if you want to add to a window that's already open, you need to use a specialized command like points, lines, etc. Try this x - y - 1:10 plot(x,y,type=n);

Re: [R] [R ]Plot a colored rectangle under the points of a graph

2011-10-08 Thread Robert Baer
This is what you tried? What doesn't work? x=1:10 y=1:10 plot(x,y, type='n') rect(4,0,6,11, col=5) points(x,y) ___ Hello everyone, if I have: x=1:10 y=1:10 plot(x,y) and I plot a rectangle rect(4,0,6,11, col=5) it covers the points of the graph. Is there a way to draw the

Re: [R] [R ]Plot a colored rectangle under the points of a graph

2011-10-08 Thread Heverkuhn Heverkuhn
Thank you, you are right my execution was completly wrong. it was plot(0,type=n); rect(4,0,6,11,col=5); plot(x,y). Thanks for your help :) H. On Sat, Oct 8, 2011 at 12:43 PM, Robert Baer rb...@atsu.edu wrote: This is what you tried? What doesn't work? x=1:10 y=1:10 plot(x,y, type='n')

[R] R plot : hat symbol and cex.lab

2011-04-26 Thread BMichel
Hello, Does anybody know how to make the hat correctly appears in the label of this plot (with this cex.lab coefficient) : plot(1:10, 1:10,ylab = expression(hat(h)),cex.lab = 1.5) The hat does not completely appear on my graph, it is like cut on the left side. It tried to change the margin :

[R] R plot : hat symbol and cex.lab

2011-04-26 Thread BMichel
Hello, Does anybody know how to make the hat correctly appears in the label of this plot (with this cex.lab coefficient) : plot(1:10, 1:10,ylab = expression(hat(h)),cex.lab = 1.5) The hat does not completely appear on my graph, it is like cut on the left side. It tried to change the margin :

Re: [R] R plot : hat symbol and cex.lab

2011-04-26 Thread Richard M. Heiberger
plot(1:10, 1:10, ylab=) mtext(side=2, expression(hat(h)),cex = 1.5, line=2.5) Rich On Tue, Apr 26, 2011 at 7:45 AM, BMichel michel.bertrand@gmail.comwrote: Hello, Does anybody know how to make the hat correctly appears in the label of this plot (with this cex.lab coefficient) :

Re: [R] R plot : hat symbol and cex.lab

2011-04-26 Thread Duncan Murdoch
On 26/04/2011 8:01 AM, BMichel wrote: Hello, Does anybody know how to make the hat correctly appears in the label of this plot (with this cex.lab coefficient) : plot(1:10, 1:10,ylab = expression(hat(h)),cex.lab = 1.5) The hat does not completely appear on my graph, it is like cut on the left

[R] r-plot problem resolved

2009-05-28 Thread durden10
Thanks a lot for all the helpful comments! It finally works :handshake: (I settled with the code of Gavin) Best, Durden -- View this message in context: http://www.nabble.com/r-plot-tp23739356p23757458.html Sent from the R help mailing list archive at Nabble.com.

[R] r-plot

2009-05-27 Thread durden10
Dear R-community I have a grueling problem which appears to be impossible to solve: I want to make a simple plot, here is my code: http://gist.github.com/118550 Unfortunately, the annotation of both the x- and y-axis are not correct, as you can see in the following picture:

Re: [R] r-plot

2009-05-27 Thread Gavin Simpson
On Wed, 2009-05-27 at 02:52 -0700, durden10 wrote: Dear R-community I have a grueling problem which appears to be impossible to solve: I want to make a simple plot, here is my code: http://gist.github.com/118550 Unfortunately, the annotation of both the x- and y-axis are not correct, as you

Re: [R] r-plot

2009-05-27 Thread Richard . Cotton
I want to make a simple plot, here is my code: http://gist.github.com/118550 Unfortunately, the annotation of both the x- and y-axis are not correct, as you can see in the following picture: http://www.nabble.com/file/p23739356/plot.png I am not an expert of R, so maybe someone can point

Re: [R] r-plot

2009-05-27 Thread Jim Lemon
durden10 wrote: Dear R-community I have a grueling problem which appears to be impossible to solve: I want to make a simple plot, here is my code: http://gist.github.com/118550 Unfortunately, the annotation of both the x- and y-axis are not correct, as you can see in the following picture:

[R] r-plot 2nd attempt

2009-05-27 Thread durden10
First of all, thanks a lot for your quick helpful comments! I have come down to this: Win- c(-0.005276404, 0.081894394, -0.073461539, 0.184371967, 0.133189670, -0.006239016, -0.063616699, 0.196754234, 0.402148743, 0.104408425, 0.036910154, 0.195227863, 0.212743723,

Re: [R] r-plot 2nd attempt

2009-05-27 Thread Gavin Simpson
On Wed, 2009-05-27 at 06:06 -0700, durden10 wrote: First of all, thanks a lot for your quick helpful comments! I have come down to this: Win- c(-0.005276404, 0.081894394, -0.073461539, 0.184371967, 0.133189670, -0.006239016, -0.063616699, 0.196754234, 0.402148743, 0.104408425,

Re: [R] R plot

2008-10-17 Thread Wacek Kusnierczyk
Haoda Fu wrote: All - When I plot something like a-rnorm(5) b-rnorm(5) plot(a,b,col = red) points(10,-10) The last point is missing because it is out of range of the first plot. I just try to switch from Matlab to R. In Matlab, it always can automatic adjust the xlim and ylim for

Re: [R] R plot

2008-10-17 Thread Benoit Boulinguiez
] [mailto:[EMAIL PROTECTED] De la part de Wacek Kusnierczyk Envoyé : vendredi 17 octobre 2008 10:47 À : Haoda Fu Cc : R help Objet : Re: [R] R plot Haoda Fu wrote: All - When I plot something like a-rnorm(5) b-rnorm(5) plot(a,b,col = red) points(10,-10) The last point is missing because

Re: [R] R plot

2008-10-17 Thread Ted Harding
- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Wacek Kusnierczyk Envoyé : vendredi 17 octobre 2008 10:47 À : Haoda Fu Cc : R help Objet : Re: [R] R plot Haoda Fu wrote: All - When I plot something like a-rnorm(5) b-rnorm(5) plot(a,b,col = red) points(10,-10

Re: [R] R plot

2008-10-17 Thread Wacek Kusnierczyk
2008 10:47 À : Haoda Fu Cc : R help Objet : Re: [R] R plot Haoda Fu wrote: All - When I plot something like a-rnorm(5) b-rnorm(5) plot(a,b,col = red) points(10,-10) The last point is missing because it is out of range of the first plot. I just try to switch from Matlab to R

Re: [R] R plot

2008-10-17 Thread hadley wickham
On Fri, Oct 17, 2008 at 4:31 AM, Ted Harding [EMAIL PROTECTED] wrote: On 17-Oct-08 09:01:08, Benoit Boulinguiez wrote: Hi, Personally I always use xlim and ylim with the plot or points function like that: plot( X,Y,pch=16,col=2,cex.axis=1.5,cex.lab=1.5,

Re: [R] R plot

2008-10-17 Thread Ryan
Use lattice or ggplot __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] R plot

2008-10-16 Thread Haoda Fu
All - When I plot something like a-rnorm(5) b-rnorm(5) plot(a,b,col = red) points(10,-10) The last point is missing because it is out of range of the first plot. I just try to switch from Matlab to R. In Matlab, it always can automatic adjust the xlim and ylim for such case. Is it possible

[R] R plot as image data and another question

2008-03-18 Thread Bio7
Dear R developers, i would like to get the plots of R in the form of matrix data which i want to transfer to an external image software. Is it generally possible to get the plot information in form of data values? Another question concerns about the command line execution of scripts. From an

Re: [R] R plot as image data and another question

2008-03-18 Thread Prof Brian Ripley
On Tue, 18 Mar 2008, Bio7 wrote: Dear R developers, i would like to get the plots of R in the form of matrix data which i want to transfer to an external image software. Is it generally possible to get the plot information in form of data values? Another question concerns about the

Re: [R] R plot as image data and another question

2008-03-18 Thread Bio7
In my case i use R by means of Rserve from my Java application. Since i`ve integrated the well known image analysis tool ImageJ i can send images to R and vice versa. This works well and is quite fast. My idea now was to get the plot information from R in the form of matrix data which i can