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)
counties$old
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)
> plot(1
> 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 = "l
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
aesth
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 split.sc
?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 = "
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
mat
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= argument or used explici
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
wrote:
> Thanks very m
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 using the x-axis for each
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 graphs
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 par(mfrow=c(3,2)) to
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
__
R-help
nces@r-
> 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 b
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 valu
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" wrote:
>Hi,
>
>Since you didn't provid
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 Wed,
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.
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 20
Try extract the individual frames first ...
Thanks,
Guanrao
http://www.foundyo.com
From: Mª Teresa Martinez Soriano
To: "r-help@r-project.org"
Sent: Tuesday, August 6, 2013 3:43 AM
Subject: [R] R plot
Hi to everyone, first of all, thank
ject.org] On
Behalf 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
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 problem
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
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 m
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,
int_1-min,max-int_2
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, i.e
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 br
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")
legend(ma
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,
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]]
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 wrote:
> This is what you tried? What doesn't work?
> x=1:10
> y=1:10
>
> plot(x,y, type='n')
> rect(4,0,
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 rectangle
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"); rect(4
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
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 le
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 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 = expr
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 :
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 :
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.
_
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.10
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, 0.2
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:
http
> 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 po
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
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:
http://www.nabble.com
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
[EMAIL PROTECTED]
801.408.8111
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> project.org] On Behalf Of Haoda Fu
> Sent: Thursday, October 16, 2008 10:07 PM
> To: r-help@r-projec
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.
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,
>> xlim=c(0,1.05*max
things work; but I have
> to admit that I don't like it!
>
> Best wishes to all,
> Ted.
>
>
>
>> -----Message d'origine-
>> De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> De
>> la part de Wacek Kusnierczyk
>> Envoyé : vendred
rk; but I have
to admit that I don't like it!
Best wishes to all,
Ted.
> -Message d'origine-
> 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]
ECTED] [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&
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 x
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 possi
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 transf
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
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 ex
56 matches
Mail list logo