[R] Plotting logarithmic and semiloarithmic charts.

hadley wickham h.wickham at gmail.com
Mon Aug 7 15:46:35 CEST 2006


> > Can anyone help me to find functions
> > like LOGLOG and SEMILOG in Matlab.
> >
> > I am sure that they are out there.
> > Thanks in advance
>
> plot(....., log="y")
> plot(....., log="x")
> plot(....., log="xy")

or

install.packages("ggplot")
library(ggplot)
qplot(....., log="y")
qplot(....., log="x")
qplot(....., log="xy")

which work with all types of graphics, not just scatterplots.

You can transform the axes using any monotone function, see
?pscontinuous for examples.

Hadley



More information about the R-help mailing list