[R] Odp: plot with personalized axes
Petr PIKAL
petr.pikal at precheza.cz
Wed Apr 28 12:34:40 CEST 2010
Hi
r-help-bounces at r-project.org napsal dne 28.04.2010 12:06:04:
> Hello all,
>
> I want to plot some probability points (in scale 0-1), but the large
> majority have extremely low probabilities.
>
> Imagine I have the following vector
>
> a<-c(0.0001,0.004,0.01,0.4)
> plot(a)
>
> When you plot it, obviously the three first points are not very
> distinguishable. I would like to use a y-scale in which each "unity"
> increases 10-fold from the previous one.
>
> Say, a scale 10^n, where n=1,2,3... (equally spaced). For example,
> c(0.00001,0.0001,0.001,0.01,0.1,1) equally spaced on the y-axis.
If I am not wrong you are talking about logarithmical axes.
plot(a, log="y")
Regards
Petr
>
> Some advice on that would be greatly appreciated.
>
> Duarte Viana
>
> ______________________________________________
> 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