[R] (no subject)

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Wed Apr 15 08:33:10 CEST 2015

A wild guess is that you have not converted your newdate column into a time metric such as Date or POSIXt. Our responses can be ever so much more helpful if you follow the Posting Guide (mentioned in the footer), e.g. posting using plain text so the code gets through the mailing list successfully, and if you make your example reproducible [1].

[1] http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
Sent from my phone. Please excuse my brevity.

On April 14, 2015 5:04:48 PM PDT, Dot Lundberg <dotlundberg at gmail.com> wrote:
>New to R. Having trouble with the xaxis in this code. The tick marks
>crazy and the labels repeat. Any suggestions?
>axis(side=2, at=c(0,2,4,6,8))
>mtext("Precipitation (cm)", side = 2, line=2.5, at=4)
>mtext("Date", side=1, line=2.5)
>axis.Date(1, at=seq(min(LPB_PPT_R$newdate),
>max(LPB_PPT_R$newdate),las=2,by="1 weeks"),format="%m-%Y")
>axis(side=4, at=c(0,50,100))
>mtext("Cumulative Precipitation (cm)", side=4, line=2.5, at=50,
>	[[alternative HTML version deleted]]
>R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list