[R] 24 hour axis /time plots

2009-02-20 Thread somewhereondearth

Hi, 
i have a data with values against  time and date. for plotting against date
i used axis.Date() option. but I need a 24hr time plot as well. i have
extracted and plotted, but not being able to put the time ticks ( eg. 6am, 7
am etc) on the x-axis. Im new to R, any help would be appreciated!!
-- 
View this message in context: 
http://www.nabble.com/24-hour-axis--time-plots-tp22128939p22128939.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 read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Problems with labeling a set X axis in chron plots

2009-02-16 Thread somewhereondearth

HI,

I couldn't get your problem exactly, but if you are looking for dates on
x-axis, then try using 
axis.Date() option.
 you can give the weekly, daily sequence if you like.( I am trying for a
6-hour sequence, but hasn't got it yet).



Neotropical bat risk assessments wrote:
> 
> I am having difficulties getting the X-axis labels (dates) to be as 
> needed when plotting from chron
> 
> The help syntax from chron lists this example:
> 
> x <- chron(dates = c("02/27/92", "02/27/92", "01/14/92", "02/28/92"),
> 
> 
> I have activity plots by time on the y-axis and the dates on the 
> x-axis. What I need/want is that the dates remain the same for a give 
> set of data i.e. 10/25/2006 to 03/30/2007 as with some data sets 
> within this time frame there is no activity for all of the dates so 
> each plot has a different set of dates.
> 
> 
> Below works great but when I try to constrain the dates it crashes...
> 
> DF <- read.table(textConnection(Lines), header = TRUE, as.is = TRUE)
> DF$Date <- chron(DF$Date)
> DF$Time <- times(paste(DF$Time, 0, sep = ":"))
> at <- c(0, 1, 2, 3, 4, 5, 6, 17, 18, 19, 20, 21, 22, 23, 24)
> plot(Time ~ Date, DF, ylim = 0:1, yaxt = "n",main= "Centronycteris
> centralis")
> axis(2, at/24, lab = paste(at, "00", sep = ":"), las = 1, cex.axis = .7)
> 
> Thanks to all here on the group,
> 
> Bruce Miller
> 
> __
> 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.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problems-with-labeling-a-set-X-axis-in-chron-plots-tp22047913p22048996.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 read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] PDF append help

2009-02-16 Thread somewhereondearth

Hi,
I need to append my multiple plots in pdf files. 
my problem is that I would want to run the R script a number times(closing
and opening) and still want to append. If i keep the dev.off() it wouldnt
let me see my plots while R is open.

any idea!!

Jorge Ivan Velez wrote:
> 
> Hi Ramya,
> 
> Perhaps
> 
> pdf("C:/100plots.pdf")
> for(i in 1:100) plot(rnorm(10), type='b', main='My 100 plots')
> dev.off()
> 
> HTH,
> 
> Jorge
> 
> 
> On Tue, Aug 5, 2008 at 12:41 PM, Rajasekaramya
> wrote:
> 
>>
>> hi there,
>>
>> Is there any function to append the pdf file.
>>
>> I want to write in a pdf file some 100 plots(in one single pdf containing
>> 100 plots) while all the plot are created using a for loop.
>>
>> I can create 100 pdf one for each for each plot using a for loop but i
>> want
>> only one pdf with 100 plots.
>>
>> Ramya
>> --
>> View this message in context:
>> http://www.nabble.com/PDF-append-help-tp18835069p18835069.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 read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
> 
>   [[alternative HTML version deleted]]
> 
> __
> 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.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/PDF-append-help-tp18835069p22042954.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 read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.