Message-ID: <971536df0612270432q6da9143cu8c0a611508ba39e7@mail.gmail.com>
Date: 2006-12-27T12:32:58Z
From: Gabor Grothendieck
Subject: axis and times() problem
In-Reply-To: <45924953.9070100@einthal.de>
Try:
plot(x, y, bty = "n", xaxs = "i", yaxs = "i")
Actually I think there may be a bug here since the axes do not intersect.
On 12/27/06, Knut Krueger <Knut-krueger at einthal.de> wrote:
> Dear R-Group,
> the first example is working as expected, but I need the plot without
> the box,
> normally no problem, but I am not able to get the x-axis formatted as
> times with the axis, command.
> I tried a lot of things, nothing was working so I used the most easy
> axis command in the second example here ....
>
> # working
> library(chron) # for times()
> library(graphics)# for axis
> par(cex=1.2,lwd=1)
> x <- c(times("12:15:00"),times("15:30:00"))
> y <- c(1,5)
> plot(x, y, type="n",adj=0, asp=0, xlab="", ylab="",font.axis=2,yaxt='n')
>
> # axis() command problem:
> par(cex=1.2,lwd=1)
> x <- c(times("12:15:00"),times("15:30:00"))
> y <- c(1,5)
> plot(x, y,axes=FALSE, type="n",adj=0, asp=0, xlab="",
> ylab="",font.axis=2,yaxt='n')
> axis(1)
>
>
> Maybe anybody could help me to disable the box around the plot and get
> the x-axis formatted as times
>
> Regards Knut
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>