[R] R help, labeling the tick marks as I want
Patrick Connolly
p_connolly at slingshot.co.nz
Tue Jan 31 10:10:51 CET 2012
On Mon, 30-Jan-2012 at 08:03PM -0800, Ryan Murphy wrote:
|> R help,
|>
|> I would like to change the labels of my tick marks on the x-axis, and I am
|> having difficulty understanding how. Basically, my current axis labels
|> are: 0, 50, 100, 150, 200, and I would like: 1962Q1, 1974Q2, 186Q4, 1999Q2,
|> 2011Q4.
Check out how to use the scales list in the (rather lengthy) help for
xyplot. You might get some additional ideas from the help for axis,
in particular the parameters at and labels.
HTH
|>
|> With all respect to generality, could you please simply tell me the code to
|> achieve this in the context of this problem? I learn programming by
|> example and will not be able to understand this:
|> ltext(x, y = NULL, labels = seq_along(x),
|> col, alpha, cex, srt = 0,
|> lineheight, font, fontfamily, fontface,
|> adj = c(0.5, 0.5), pos = NULL, offset = 0.5, ..., identifier,
|> name.type)
|>
|> Here's what I have:
|> xyplot(share ~ ec, data=Cur, xlab="Years", ylab="Currency's Share of
|> Nominal GDP (Currency/GDP in a given year)", main="The Share of Currency
|> Over Time")
|>
|> where ec refers to equal count data representing the year and quarter of
|> the year.
|>
|> Thank you very much.
|> Sincerely,
|> Ryan Murphy
|>
|> [[alternative HTML version deleted]]
|>
|> ______________________________________________
|> R-help at 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.
--
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
___ Patrick Connolly
{~._.~} Great minds discuss ideas
_( Y )_ Average minds discuss events
(:_~*~_:) Small minds discuss people
(_)-(_) ..... Eleanor Roosevelt
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
More information about the R-help
mailing list