[R] R and Python

2015-03-01 Thread linda.s
Is there any good example codes of integrating R and Python? Thanks. Linda [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

[R] figure resolution

2015-03-01 Thread linda.s
when using R for exporting figures to folder, how to improve the figure resolution? Thanks. Linda [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-h

[R] plot month and year

2010-07-14 Thread linda.s
R Code begins unem=read.csv("book5.csv",header=T,row.names=1) attach(unem) unem1=ts(unem$Allen, start=1) ts.plot(unem1,main="Allen") points(unem1,type="o") R Code ends because the time starts at JAN_08 and ends on DEC_09, how to make the y axis in the plot show month starting from JAN_08 instead o

Re: [R] plot month and year

2010-07-14 Thread linda.s
tarting from JAN_08 instead of having the current ugly appearance (5, 10, 15, 20,…)? On Wed, Jul 14, 2010 at 9:20 AM, linda.s wrote: > R Code begins > unem=read.csv("book5.csv",header=T,row.names=1) > attach(unem) > unem1=ts(unem$Allen, start=1) > ts.plot(unem1,main="Al

Re: [R] plot month and year

2010-07-15 Thread linda.s
quot;o") > > is what you want. > > hth, > Z > > On Wed, 14 Jul 2010, linda.s wrote: > >> R Code begins >> unem=read.csv("book5.csv",header=T,row.names=1) >> attach(unem) >> unem1=ts(unem$a, start=1) >> ts.plot(unem1,main="a")

[R] assign

2010-07-16 Thread linda.s
Hi. I am a beginner. What is the difference between: x<-2 and x=2 Thanks. Linda __ 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 co

[R] save plot

2010-07-16 Thread linda.s
I made a plot, but after I made a second plot, the previous plot was gone. How can I save all the plots in a file (I do not manually copy and paste them one by one)? Thanks. Linda __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo

Re: [R] plot month and year

2010-07-17 Thread linda.s
08, can I make it 2008.1, and also show 2009.12 on the axis? Thanks. On Wed, Jul 14, 2010 at 9:49 AM, Achim Zeileis wrote: > You do not provide a reproducible example, as the posting guide asks you to. > But I guess that your time series setup using ts() is insufficient, see ?ts. > If t

Re: [R] save plot

2010-07-17 Thread linda.s
> Open a new device before plotting, do your plotting, close the device. > > For example, using a PDF device via pdf(): > > pdf("my_plots.pdf", height = 8, width = 8, pointsize = 10, >    version = "1.4", onefile = TRUE) > for(i in 1:10) { >    y <- rnorm(100) >    x <- rnorm(100) >    plot(y ~ x)

Re: [R] save plot

2010-08-03 Thread linda.s
> [I presume you addressed this to Duncan Murdoch for a good reason???] > > Open a new device before plotting, do your plotting, close the device. > > For example, using a PDF device via pdf(): > > pdf("my_plots.pdf", height = 8, width = 8, pointsize = 10, >    version = "1.4", onefile = TRUE) > fo

Re: [R] save plot

2010-08-04 Thread linda.s
Can I make a group of jpeg instead of pdfs? Thanks. Linda On Wed, Aug 4, 2010 at 6:47 AM, John Kane wrote: > Yes,  ?jpeg > > --- On Tue, 8/3/10, linda.s wrote: > >> From: linda.s >> Subject: Re: [R] save plot >> To: gavin.simp...@ucl.ac.uk >> Cc: r-hel