[R] ticks labels and R

Eugene Semenko sea at sao.ru
Mon Mar 19 09:39:22 CET 2007


В сообщении от Sunday 18 March 2007 20:38 Marc Schwartz написал(a):
> Eugene, see ?plotmath for more information.
> at <- seq(-360, 360, 60)
>
> plot(at, at, axes = FALSE)
>
> # Now create expressions with the degree symbol
> # See ?parse and ?paste
> L <- parse(text = paste(at, "*degree", sep = ""))
>
> > L
>
> expression(-360 * degree, -300 * degree, -240 * degree, -180 *
>     degree, -120 * degree, -60 * degree, 0 * degree, 60 * degree,
>     120 * degree, 180 * degree, 240 * degree, 300 * degree, 360 *
>         degree)
>
> # now do the axis labels
> axis(1, at = at, labels = L, cex.axis = 0.75)
>
> axis(2, at = at, labels = L, cex.axis = 0.75, las = 2)
>
>
> See ?axis as well.
	Hi Mark. Thanks for operative answer. It works.
-- 
---------------------------------------------------------------------------------------
Eugene A. Semenko
e-mail: sea at sao.ru              Special Astrophysical Observatory RAS,
WWW: http://tiger.sao.ru/       Nizhnij Arkhyz
phone: +7 87878 46 5 77         Karachai-Chercassian Republic,
fax: +7 87878 46 5 27           Russia, 369167
cell: +7 928 810 48 61
ICQ: 167727721



More information about the R-help mailing list