Alternatively, you can put R-studio server on AWS by going to
https://www.louisaslett.com/RStudio_AMI/. -- H
On Thu, 20 Apr 2023 at 04:58, Duncan Murdoch
wrote:
> On 20/04/2023 7:43 a.m., Naresh Gurbuxani wrote:
> > In my Amazon Web Services (AWS) account, I use R via emacs launched from
> termi
On 20/04/2023 7:43 a.m., Naresh Gurbuxani wrote:
In my Amazon Web Services (AWS) account, I use R via emacs launched from
terminal. While R computations work well, viewing graphs is inconvenient. I am
not able to use screen device. I can send graphs to a png or pdf file, then
open the file.
In my Amazon Web Services (AWS) account, I use R via emacs launched from
terminal. While R computations work well, viewing graphs is inconvenient. I am
not able to use screen device. I can send graphs to a png or pdf file, then
open the file.
I would like a setup where code is run in one wi
Rosa Oliveira wrote:
> Dear Jim,
>
> when I run your code (even the one you send me, not in my data), I get:
>
> Don't know how to automatically pick scale for object of type function.
> Defaulting to continuous
> Error in data.frame(x = c(0.1, 0.2, 0.1, 0.2, 0.1, 0.2, 0.1, 0.2, 0.1, :
> argume
> col=4,type=“l”,xlab=“Region”,ylab=“factor")
>
>
>
> John Kane
> Kingston ON Canada
>
> -Original Message-
> From: d...@u.washington.edu
> Sent: Wed, 10 Jun 2015 11:32:59 -0700
> To: rosit...@gmail.com
> Subject: Re: [R] graphs, need urgent h
t; # Now do two more groups of 3, changing the parameter “lty” to 3 and then
>>>> 4
>>>>
>>>> # Look at the syntax and note what changes and what stays constant. Do you
>>>> see how this works?
>>>> # there will be what looks like a vertical line where sample = 3
You have curly quotes rather than plain ones here :
col=4,type=“l”,xlab=“Region”,ylab=“factor")
John Kane
Kingston ON Canada
-Original Message-
From: d...@u.washington.edu
Sent: Wed, 10 Jun 2015 11:32:59 -0700
To: rosit...@gmail.com
Subject: Re: [R] graphs, need urgent help (dea
gging sessions a few years ago make me
sensitive to such problems.
John Kane
Kingston ON Canada
-Original Message-
From: d...@u.washington.edu
Sent: Wed, 10 Jun 2015 12:07:27 -0700
To: rosit...@gmail.com
Subject: Re: [R] graphs, need urgent help (deadline :( )
Here is code that IS tested.
>>>>
>>>>
>>>> Rosa Celeste dos Santos Oliveira,
>>>>
>>>> E-mail: rosit...@gmail.com
>>>> Tlm: +351 939355143
>>>> Linkedin: https://pt.linkedin.com/in/rosacsoli
E-mail: rosit...@gmail.com <mailto:rosit...@gmail.com>
>>>> Tlm: +351 939355143
>>>> Linkedin: https://pt.linkedin.com/in/rosacsoliveira
>>>> <https://pt.linkedin.com/in/rosacsoliveira>
>>>> ___
t;> see how this works?
>>>> # there will be what looks like a vertical line where sample = 30 and
>>>> factorb = 174.592. Do you see why?
>>>>
>>>> # then you will need a legend
>>>>
>>>>> Nonetheless I can’t do it :(
;> Hippocrates
>>>
>>>> On 10 Jun 2015, at 14:13, John Kane >>> <mailto:jrkrid...@inbox.com>> wrote:
>>>>
>>>> Hi Jim,
>>>>
>>>> I was looking at that last night and had the same problem of visualizing
>>>> what
___
>>>>
>>>>
>>>> Rosa Celeste dos Santos Oliveira,
>>>>
>>>> E-mail: rosit...@gmail.com <mailto:rosit...@gmail.com>
>>>> Tlm: +351 939355143
>>>> Linkedin: https://pt.linkedin.com/in/rosacsoliveira
but would something like this work as a substitute or am I completely
>>> lost?
>>>
>>>
>>> dat1 <- structure(list(region = c(0.1, 0.2, 0.1, 0.2, 0.1, 0.2, 0.1,
>>> 0.2), sample = c(10L, 10L, 20L, 20L, 30L, 30L, 40L, 40L), factora =
>>> c(0.8
geom_line() + facet_grid(sample ~ .)
>
> John Kane
> Kingston ON Canada
>
>
>> -Original Message-
>> From: drjimle...@gmail.com
>> Sent: Wed, 10 Jun 2015 20:51:52 +1000
>> To: rosit...@gmail.com
>> Subject: Re: [R] graphs, need urgent help (d
11, 0.653, 0.694, 0.461, 0.693, 0.686)), .Names = c("region",
>> "sample", "factora", "factorb", "factorc"), class = "data.frame", row.names
>> = c(NA,
>> -8L))
>>
>>
>> mdat1 <- melt(dat1,
e.name = "factor",
value.name = "value")
str(mdat1)
ggplot(mdat1, aes(region, value, colour = factor)) +
geom_line() + facet_grid(sample ~ .)
John Kane
Kingston ON Canada
> -Original Message-----
> From: drjimle...@gmail.com
&
Hi Rosa,
Like Don, I can't work out what you want and I don't even have the
picture. For example, your specification of color and line type leaves
only one point for each color and line type, and the line from one
point to the same point is not going to show up. Here is a possibility
that may lead
Dear Don,
I done the plot and the lines, and it’s fine.
I’ll have 10 values on sample. It’s generating (on simulation), that’s why that
huge outlier, and the other missing points.
The graph I’ve done, is just an example, just to illustrate what I have to get,
but off course with 10 points in s
The R function plot() will draw the first line and the two axes. You need to
tell it which subsample of your data to plot, as in my example below.
So start with those two observations for which “sample” = 10. But if you want
separate lines for each unique value of “sample”, your lines will conn
Dear Don and all,
I’ve read the tutorial and tried several codes before posting :)
I’m really naive.
what I was trying to : is something like the graph in the picture I drawee.
Is it more clear now?
Atenciosamente,
Rosa Oliveira
--
__
The answer lies in learning to use the help (and knowing where to start). Did
you look at the tutorial that comes with the R installation?
?plot
?lines
?par
In the last, look for the descriptions of “col” and “lty”.
Using plot() and lines(), and subsetting the four unique values of “sample
Hi,
another naive question (i’m pretty sure :( )
I’m trying to plot a multiple line graph:
regionsample factora factorbfactorc
0.1 10 0.895 0.903 0.378
0.2 10 0.811 0.865 0.688
0.1 20 0.735 0.966 0.611
0.2 20
On Jun 3, 2015, at 3:30 AM, Jeremy Clark wrote:
> The coding I've settled on to save file without clipping is:
What exactly was "clipping". You earlier complained about "jaggies". There was
no restriction of the plotted lines to the plot area in the example you earlier
presented. That's what I
The coding I've settled on to save file without clipping is:
library(gridExtra)
gt <- ggplot_gtable(ggplot_build(q3))
gt$layout$clip[gt$layout$name=="panel"] <- "off"
gt4 <- arrangeGrob(gt)
ggsave <- ggplot2::ggsave; body(ggsave) <- body(ggplot2::ggsave)[-2]
## from Baptiste
ggsave("gt.pdf", plot
On May 4, 2015, at 3:13 AM, Jeremy Clark wrote:
> Dear All,
>
> Many thanks for your very comprehensive replies. Here I provide some
> coding which on my system has the following effects:
> 1) The italic R is not rendered by CairoX11, but is rendered by quartz.
> 2) Both geom_smooth and geom_abl
Hi Jeremy,
On Mon, May 4, 2015 at 6:13 AM, Jeremy Clark
wrote:
> Dear All,
>
> Many thanks for your very comprehensive replies. Here I provide some
> coding which on my system has the following effects:
> 1) The italic R is not rendered by CairoX11, but is rendered by quartz.
I don't have a Mac
Dear All,
Many thanks for your very comprehensive replies. Here I provide some
coding which on my system has the following effects:
1) The italic R is not rendered by CairoX11, but is rendered by quartz.
2) Both geom_smooth and geom_abline here give stepped lines (I've
realised the angle of the li
On Thu, Apr 30, 2015 at 8:05 AM, Jeremy Clark wrote:
> Dear All,
>
> First of all, many thanks to all R contributors for a fantastic
> program, and especially to Hadley Wickham for creating ggplot2. The
> following is intended to be a warning that, if the apparently
> superficial problems describe
sity
College Station, TX 77840-4352
-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Bert Gunter
Sent: Thursday, April 30, 2015 1:41 PM
To: Jeremy Clark
Cc: r-help@r-project.org
Subject: Re: [R] Graphs for scientific publication ?
Jeremy:
I suggest you ha
Jeremy:
I suggest you have a look at the latest edition of Paul Murrell's
book, "R Graphics", as you seem to be unaware that ggplot2 (as well as
a 3rd graphics paradigm, the lattice package) and base graphics are
built on 2 different and incompatible graphics engines.
Obviously, you are entitled
Dear All,
First of all, many thanks to all R contributors for a fantastic
program, and especially to Hadley Wickham for creating ggplot2. The
following is intended to be a warning that, if the apparently
superficial problems described are not sorted out, R could well find
itself being superceded.
t; From: mir.sa...@uef.fi
> Sent: Fri, 13 Mar 2015 16:27:06 +0000
> To: jrkrid...@inbox.com, petr.pi...@precheza.cz, r-help@r-project.org
> Subject: RE: [R] graphs
>
>
> __Dear all,
>
> You can see the plot specif curves in the enclosed document. Inclusion of
> all pl
> Sent: Friday, March 13, 2015 4:12 PM
> To: PIKAL Petr; Mir Salam; r-help@r-project.org
> Subject: Re: [R] graphs
>
> @Petr
>
> I agree. I think Mir would get a totally unreadable graph. I occasionally
> look at some spagetti graphs from climate research, and I find 8
__
From: John Kane
Sent: Friday, March 13, 2015 4:12 PM
To: PIKAL Petr; Mir Salam; r-help@r-project.org
Subject: Re: [R] graphs
@Petr
I agree. I think Mir would get a totally unreadable graph. I occasionally look
at some spagetti graphs from climate research, and I find 8 - 12 lines
4,0.0037,0.004,0.0043,0.0025,0.0024,0.0024,0.0023,0.0022,0.0021,0.0021,0.003,0.0031,0.0032,0.0033,0.0034,0.0035,0.0036))
names(df1) <- c("class", "rate", "default")
p <- ggplot(df1, aes(rate, default,colour=class)) + geom_point() +
facet_grid(class ~.) +
Of Mir
> Salam
> Sent: Sunday, March 08, 2015 10:57 PM
> To: r-help@r-project.org
> Subject: [R] graphs
>
> Dear all,
>
> I need help to get different 68 plots specifc fitted curves in one
> plot with respective field data observations (age vs dominant height).
>
>
>
Dear all,
I need help to get different 68 plots specifc fitted curves in one plot with
respective field data observations (age vs dominant height).
aspdomH2<-groupedData(domH2~age|plotno,data=aspdomH2)
names(aspdomH2)
plotno, age, origin, soilcharacter, domH2,
plotno-different plot no
Thanks, Marc yes, it was Shiny that I'd seen. Thanks a lot!
regards
David
On 26 December 2012 16:31, Marc Schwartz wrote:
>
> On Dec 26, 2012, at 6:34 AM, David Osborne wrote:
>
> > Browsing the web recently, I came across what I think is a new utility
> for
> > generating an interactive, w
David Osborne gmail.com> writes:
>
> Browsing the web recently, I came across what I think is a new utility for
> generating an interactive, web-based R graph of data from a database. The
> generated graph can be manipulated by a user to choose different data,
> limits, etc. I would like to inve
Hi David,
I suggest you to have a look at packages that can extract data from
sql or nosql databases and graphics. CRAN task views would help:
http://cran.r-project.org/web/views/Graphics.html
The point is there are lots of alternatives. If you would like to use
web-based visualisation d3 is bec
On Dec 26, 2012, at 6:34 AM, David Osborne wrote:
> Browsing the web recently, I came across what I think is a new utility for
> generating an interactive, web-based R graph of data from a database. The
> generated graph can be manipulated by a user to choose different data,
> limits, etc. I wou
Browsing the web recently, I came across what I think is a new utility for
generating an interactive, web-based R graph of data from a database. The
generated graph can be manipulated by a user to choose different data,
limits, etc. I would like to investigate using this with data from our
research
p@R-project.org
> Subject: [R] Graphs using R
>
> Dear,
>
> I have a table with four columns similar to the following:
>
> Factory Name Production typeMonthsFreq
>
> Factory 1 Car type 1 Jan.
> 0
>
> Factor
2012 08:26:59 +0000
> Subject: [R] Graphs using R
>
> Dear,
>
> I have a table with four columns similar to the following:
>
> Factory Name Production typeMonthsFreq
>
> Factory 1 Car type 1 Jan.
Dear,
I have a table with four columns similar to the following:
Factory Name Production typeMonthsFreq
Factory 1 Car type 1 Jan.0
Factory 1 Car type 2 Feb. 1
Factory 2
gt; I use R under Windows, and I've seen the same sort of thing. I usually
>> save
>> graphs as PDF or PNG files, which works fine, but on the rare occasions
>> I've
>> tried to save graphs as Postscript, some of the graphs end up saving with
>> bits missi
script, some of the graphs end up saving with
bits missing.
--
View this message in context:
http://r.789695.n4.nabble.com/R-graphs-differ-from-exported-one-tp3592553p3592915.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-
PNG files, which works fine, but on the rare occasions I've
tried to save graphs as Postscript, some of the graphs end up saving with
bits missing.
--
View this message in context:
http://r.789695.n4.nabble.com/R-graphs-differ-from-exported-one
Hmm, did you shut the device down afterward (i.e., call dev.off() )?
I do not have any logic why that would induce the behavior you say you
are getting, but this works just fine for me:
postscript("tmp.eps", onefile = TRUE)
qqnorm(rnorm(20))
dev.off()
and creates the attached file (possibly not a
Hello everybody! This is my first mail so I'll write a couple of lines
of self-introduction.
My name is Massimiliano, I'm from Italy and I'm studying Mathematical
Engineering.
I started using R in my Statistics course and have to use it to make a
project which I'll discuss at the end of the course.
Rolf,
Taking out the scalar multiples did it. Thanks for that.
*Ben Caldwell*
PhD Candidate
University of California, Berkeley
On Sun, May 15, 2011 at 10:30 PM, Rolf Turner wrote:
>
> In your example it appears that you are plotting a histogram (on the
> frequency
> scale) and then superim
Dear all,
it might not be a R-related question, however, I would appreciate if anyone
could suggest a mathematical/statistical framework that integrates graphs
and arrays, and potentially has a R implementation.
to give an example : given a graph of interactions (gene1 --- gene2, gene3
--- gene5,
In your example it appears that you are plotting a histogram (on the
frequency
scale) and then superimposing scalar multiples of gamma and Gaussian
densities.
You should just plot a histogram (with frequency=FALSE) and then
superimpose the
densities --- without any scalar multipliers.
If that
Hmm; still missing something - hist defaults to frequencies, not prob.
densities; and, I thought I'd scaled the fitted lines to the values in the
data frame. Just going with it, I specified freq=FALSE, and the prob density
was of course at a different order of magnitude than the lines.
What are yo
On 14/05/11 10:00, Benjamin Caldwell wrote:
Hello,
I'm trying to compare the fit of two distributions, normal and gamma, to a
histogram of my response variable.
rate<-mean(na.omit(rwb$post.f.crwn.length))/var(na.omit(rwb$post.f.crwn.length))
shape<-rate*mean(na.omit(rwb$post.f.crwn.length))
his
Hello,
I'm trying to compare the fit of two distributions, normal and gamma, to a
histogram of my response variable.
rate<-mean(na.omit(rwb$post.f.crwn.length))/var(na.omit(rwb$post.f.crwn.length))
shape<-rate*mean(na.omit(rwb$post.f.crwn.length))
hist((rwb$post.f.crwn.length), main="rwb$post.f.c
If you are foolish enough not to be
following R Bloggers via RSS or twitter,
you might miss:
http://www.portfolioprobe.com/2011/01/24/review-of-r-graphs-cookbook-by-hrishi-mittal/
Executive summary:
Extremely useful for new users, informative
to even quite seasoned users.
--
Patrick Burns
pbu
.8111
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
> project.org] On Behalf Of vikrant
> Sent: Friday, January 15, 2010 2:27 AM
> To: r-help@r-project.org
> Subject: [R] Can I save R graphs as a R objects
>
>
> Can I save R gra
On 1/15/10, vikrant wrote:
> can I edit my chart as in Excel.
>
Sort of, using playwith. You can always try to place the the plot call
inside playwith(). For example,
require(playwith)
playwith(plot(1:10))
Liviu
__
R-help@r-project.org mailing list
ht
On Fri, Jan 15, 2010 at 11:26 AM, vikrant wrote:
>
> Can I save R graphs as a R objects ?
I have seen that feature in the rkward GUI (which is by the way the BEST GUI
I have seen for a long time!), but I haven't played with that feature a lot,
so I can not comment on your second qu
You can use the recordPlot function from base package also
On Fri, Jan 15, 2010 at 7:26 AM, vikrant wrote:
>
> Can I save R graphs as a R objects ? IF yes then if I click this R object
> can I edit my chart as in Excel.
> Please suggest your views
> --
> View this message i
vikrant wrote:
Can I save R graphs as a R objects ? IF yes then if I click this R object
can I edit my chart as in Excel.
Please suggest your views
When you use the graphics functions from the lattice package (e.g.
xyplot) you can save them to a file (see ?save) because it creates an
Can I save R graphs as a R objects ? IF yes then if I click this R object
can I edit my chart as in Excel.
Please suggest your views
--
View this message in context:
http://n4.nabble.com/Can-I-save-R-graphs-as-a-R-objects-tp1014621p1014621.html
Sent from the R help mailing list archive at
Hi Mary,
One can use arrows too...
Here is the code :
x<-seq(75,225,0.1)
plot(x,dnorm(x,mean=140, sd=15), type='l', col='navy')
*arrows(149,0,149,dnorm(149,140,15),length=0)
*par(new=T)
plot(x,dnorm(x,mean=150, sd=15), type='l', col='orange',axes=F)
Regards
Radha
On Sun, Jul 26, 2009 at 5:09
Mary A. Marion schrieb:
> Hello,
>
> I am plotting two distributions and want to draw a vertical line at
> the critical point 149.
> How can I stop it from going further up than the norm(140,15) curve?
>
> x<-seq(75,225,0.1)
> plot(x,dnorm(x,mean=140, sd=15), type='l', col='navy')
> abline(v = 149,
Hi Mary,
On Jul 25, 2009, at 7:39 PM, Mary A. Marion wrote:
Hello,
I am plotting two distributions and want to draw a vertical line at
the critical point 149.
How can I stop it from going further up than the norm(140,15) curve?
x<-seq(75,225,0.1)
plot(x,dnorm(x,mean=140, sd=15), type='l',
Try with ?segments,
x<-seq(75,225,0.1)
plot(x,dnorm(x,mean=140, sd=15), type='l', col='navy')
#abline(v = 149, col = "black")
segments(149, 0, 149, dnorm(149,140,15))
curve(dnorm(x,mean=150, sd=15),from=75, to=225, col='orange', add=TRUE)
HTH,
baptiste
2009/7/26 Mary A. Marion
> Hello,
>
>
Hello,
I am plotting two distributions and want to draw a vertical line at the
critical point 149.
How can I stop it from going further up than the norm(140,15) curve?
x<-seq(75,225,0.1)
plot(x,dnorm(x,mean=140, sd=15), type='l', col='navy')
abline(v = 149, col = "black")
curve(dnorm(x,mean=15
s message in context:
http://www.nabble.com/Cross-platforms-solution-to-export-R-graphs-tp22970668p23016682.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do
Liviu Andronic wrote:
On Sat, Apr 11, 2009 at 3:20 PM, Philippe Grosjean
wrote:
format (PDF) to another one (SVG). In Inkscape, you use File -> Open... for
the first step, and File -> Save as... for the second. Since it is a vector
format, your graph should not look pixelised.
Yes, this is wh
On Sat, Apr 11, 2009 at 3:20 PM, Philippe Grosjean
wrote:
> format (PDF) to another one (SVG). In Inkscape, you use File -> Open... for
> the first step, and File -> Save as... for the second. Since it is a vector
> format, your graph should not look pixelised.
>
Yes, this is what I'm doing, but I
Liviu Andronic wrote:
Hello,
On Thu, Apr 9, 2009 at 3:04 PM, Philippe Grosjean
wrote:
"Cross-platforms solution to export R graphs"
There is playwith, and latticist, which seem cross-platform (binaries
available for both Mac&Win). rattle uses latticist.
Yes, right.
Rcmdr c
..<°}))><
) ) ) ) )
( ( ( ( (Prof. Philippe Grosjean
) ) ) ) )
( ( ( ( (Numerical Ecology of Aquatic Systems
) ) ) ) ) Mons-Hainaut University, Belgium
( ( ( ( (
..
Liviu
On Thu, Apr 9, 2009 at 3:04 PM, Philippe Grosjean
wrote:
> The page is at:
> http://wiki.r-project.org/rwiki/doku.php?id=tips:graphics-misc:export.
>
The article suggests to use Inksacpe for PDF -> SVG conversion.
I've recently experimented this, but it seems that the graph loses
quality in the wa
Hello,
On Thu, Apr 9, 2009 at 3:04 PM, Philippe Grosjean
wrote:
> "Cross-platforms solution to export R graphs"
>
There is playwith, and latticist, which seem cross-platform (binaries
available for both Mac&Win). rattle uses latticist.
Rcmdr can be used for saving graphs.
is then
easier to use PNG files.
Obviously, further experimentation is required here.
Best,
PhG
Philippe Grosjean wrote:
Emmanuel Charpentier wrote:
Le jeudi 09 avril 2009 à 15:04 +0200, Philippe Grosjean a écrit :
Hello Rusers,
I have worked on a R Wiki page for solutions in exporting R grap
Emmanuel Charpentier wrote:
Le jeudi 09 avril 2009 à 15:04 +0200, Philippe Grosjean a écrit :
Hello Rusers,
I have worked on a R Wiki page for solutions in exporting R graphs,
especially, the often-asked questions:
- How can I export R graphs in vectorized format (EMF) for inclusion in
MS
Le jeudi 09 avril 2009 à 15:04 +0200, Philippe Grosjean a écrit :
> Hello Rusers,
>
> I have worked on a R Wiki page for solutions in exporting R graphs,
> especially, the often-asked questions:
> - How can I export R graphs in vectorized format (EMF) for inclusion in
> MS
Thank you Philippe.
That is very helpful.
Philippe Grosjean wrote:
>
> Hello Rusers,
>
> I have worked on a R Wiki page for solutions in exporting R graphs,
> especially, the often-asked questions:
> - How can I export R graphs in vectorized format (EMF) for inclusion
Hello Rusers,
I have worked on a R Wiki page for solutions in exporting R graphs,
especially, the often-asked questions:
- How can I export R graphs in vectorized format (EMF) for inclusion in
MS Word or OpenOffice outside of Windows?
- What is the best solution(s) for post-editing
N=500. Why N=500? But
not 1500.
From another graph produced by “gelman.plot”, we can see that the x axis is
labeled as “last iteration in chain”. What is the last iteration in chain? I
set 3 chains, which chain was the result calculated based on?
Thank you very much.
Legendy
--
View this messag
Do you have an example. I am not sure what you mean.
On Mon, Oct 13, 2008 at 9:48 AM, guria <[EMAIL PROTECTED]> wrote:
>
> How Graphs in R with leveling of point can be done?
> Please help.
> --
> View this message in context:
> http://www.nabble.com/graphs-in-R-tp19955281p19955281.html
> Sent f
How Graphs in R with leveling of point can be done?
Please help.
--
View this message in context:
http://www.nabble.com/graphs-in-R-tp19955281p19955281.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
On Sat, 2008-08-23 at 12:04 -0400, Juliet Hannah wrote:
> Is there an easy way to make graphs for the following data. I have
> pretest and posttest scores for men and
> women. I would like to form a 'titlted segment' plot for the data.
> That is, make segments joining the scores,
> with different t
On Sat, Aug 23, 2008 at 1:10 PM, Michael Kubovy <[EMAIL PROTECTED]> wrote:
> Dear Juliet,
>
> Perhaps start here:
>
> require(lattice)
> mwpp <- data.frame(y = c(43,42,26,39,60,60,46,40,41,36,42,54,
>58,43,46,56,81,56,70,70,44,52,81,59,69,68),
>sex = rep(c(rep('men', 14), rep('women
Dear Juliet,
Perhaps start here:
require(lattice)
mwpp <- data.frame(y = c(43,42,26,39,60,60,46,40,41,36,42,54,
58,43,46,56,81,56,70,70,44,52,81,59,69,68),
sex = rep(c(rep('men', 14), rep('women', 12))),
pp = c(rep(c('pre', 'post'), each = 7), rep(c('pre', 'post'), each =
<[EMAIL PROTECTED]> wrote:
> From: Juliet Hannah <[EMAIL PROTECTED]>
> Subject: [R] graphs for pretest data
> To: r-help@r-project.org
> Received: Saturday, August 23, 2008, 12:04 PM
> Is there an easy way to make graphs for the following data.
> I have
> prete
Is there an easy way to make graphs for the following data. I have
pretest and posttest scores for men and
women. I would like to form a 'titlted segment' plot for the data.
That is, make segments joining the scores,
with different types of segments for men and women.
Example data:
menpre <- c(43
Try:
for(i in 1:10){
jpeg(sprintf("Rplots%02d.jpg", i))
plot(rnorm(20))
dev.off()
}
On Mon, Jun 30, 2008 at 11:58 AM, Leandro Marino <[EMAIL PROTECTED]>
wrote:
> Hi list,
>
> I want to make a lot of graphics to my end course project. So, i was using
> this sintax:
>
>
> jpeg(filename =
paste(sep="", "graf", 1:250, ".jpg")
See ?paste,
G.
On Mon, Jun 30, 2008 at 11:58:51AM -0300, Leandro Marino wrote:
> Hi list,
>
> I want to make a lot of graphics to my end course project. So, i was using
> this sintax:
>
>
> jpeg(filename = "graf01.jpg", width = 1024, height = 1024,
> u
Hi list,
I want to make a lot of graphics to my end course project. So, i was using
this sintax:
jpeg(filename = "graf01.jpg", width = 1024, height = 1024,
units = "px", pointsize = 25, quality = 100, bg = "grey95",
res = NA, restoreConsole = TRUE)
i=1
par(mfrow=c(4,1),col="grey90",fon
}
lines(xx,yy)
Use at your own risk and definitly compare them to simple plots for
clarity.
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
[EMAIL PROTECTED]
(801) 408-8111
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EM
Van Dongen Stefan wrote:
> Hi All,
>
> I would like to fill the area under a curve with a gradient of colors. Are
> there any packages or trick I could use
>
>
Hi Stefan,
Chris has answered the question of how to define the polygons, so I'll
have a shot at the gradient. The plotrix package
You could use a loop and fill small polygons with colors.
x<-seq(-3, 3, .01)
y<-eval(expression(x^3-3*x))
plot(x,y, type="n", las=1)
n<-length(x)
# vertical bars
for(i in 1:n)
{
polygon(c(x[i], x[i], x[i+1], x[i+1]), c(min(y), y[i], y[i+1], min(y)),
border=0, col = rainbow(n)[i])
}
## or sp
Maybe this information (from the R's father) can be of some help.
http://www.stat.auckland.ac.nz/~ihaka/Graphics/index.html
Van Dongen Stefan wrote:
>
> Hi All,
>
> I would like to fill the area under a curve with a gradient of colors. Are
> there any packages or trick I could use
>
> Thank
Hi All,
I would like to fill the area under a curve with a gradient of colors. Are
there any packages or trick I could use
Thanks
Stefan
Stefan Van Dongen
Antwerp
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing li
97 matches
Mail list logo