[R] no y-axis

Rui Barradas ruipbarradas at sapo.pt
Mon Nov 12 20:04:59 CET 2012


Hello,

If you want to completely remove the axis, overplot in color white.

plot(1:10, yaxt = "n")
axis(2, at = 1:10, labels = 1:10, tick = FALSE)
axis(2, at = 1:10, labels = 1:10, col = "white")

Hope this helps,

Rui Barradas
Em 12-11-2012 17:18, Geophagus escreveu:
> Hi and thanks for your answer,
>
> I need no axis - only the labels.
> In your example 1 to 10.
>
> Greetz
> GeO
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/no-drawn-y-axis-but-values-tp4649298p4649324.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.




More information about the R-help mailing list