Hi,
I am new to R and am trying to create a graph with Time(24hr) along the x axis.
Rather than start at 01.00, I wanted to start at 14.00.
I tried to use the axis(side=1, at=c( )) function but it continues to put then
in numeric order. Is there another way I can add labels to the x axis?
Did you add xaxt = n in the plot function?
Try the following:
plot(x,y, xaxt = n)
axis(1, at = c(14, 20),labels = c(14h, 20h) )
2014-07-01 12:41 GMT-05:00 Michael Millar michael88mil...@hotmail.co.uk:
Hi,
I am new to R and am trying to create a graph with Time(24hr) along the x
axis.
On Tue, 1 Jul 2014 06:41:52 PM Michael Millar wrote:
Hi,
I am new to R and am trying to create a graph with Time(24hr) along
the x
axis. Rather than start at 01.00, I wanted to start at 14.00.
I tried to use the axis(side=1, at=c( )) function but it continues to put
then in numeric
...@northnet.com.au
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of Michael Millar
Sent: Wednesday, 2 July 2014 03:42
To: r-help@R-project.org
Subject: [R] x axis labelling
Hi,
I am new to R and am trying to create a graph with Time(24hr
Hi Dave,
Thanks for your reply. I can't reproduce the last line of code your code.
The ifelse argument throws back an error saying it was not used.
A
On Fri, Feb 1, 2013 at 10:56 PM, David Winsemius dwinsem...@comcast.netwrote:
On Feb 1, 2013, at 9:30 AM, Alfredo Tello wrote:
Hi Folks!
On Feb 4, 2013, at 4:00 AM, Alfredo Tello wrote:
Hi Dave,
Thanks for your reply. I can't reproduce the last line of code your code. The
ifelse argument throws back an error saying it was not used.
Did you look at your graphics window? On my machine the plot you asked for was
created by
Hi Folks!
I have a question regarding an issue on which I´ve read a few threads but
can´t resolve -- Labelling every other tick mark on the x-axis using
factors. Here´s an example:
db-data.frame(date=as.factor(c(1:50)),var=rnorm(50))
On Feb 1, 2013, at 9:30 AM, Alfredo Tello wrote:
Hi Folks!
I have a question regarding an issue on which I´ve read a few
threads but
can´t resolve -- Labelling every other tick mark on the x-axis using
factors. Here´s an example:
Why not:
8 matches
Mail list logo