Logarithmic Plot
The base function grid()
does not support logarithmic scales very well. Especially when more lines are required, grids have to be created manually. PlotLog
creates a plot with at least one logarithmic axis and places a logarithmic grid in the background of the data.
PlotLog(x, ..., args.grid = NULL, log = "xy")
x |
the coordinates of points in the plot. Alternatively, a single plotting structure, function or any R object with a plot method can be provided. |
... |
the dots are passed on to the function |
args.grid |
a list of arguments for the grid. This contains line type, line width and line color, separately for major gridlines and for minor gridlines. |
log |
a character string which contains " |
nothing
Andri Signorell <andri@signorell.net>
PlotLog(brain ~ body, data=MASS::Animals, log="xy", xlim=c(.01, 1e5), ylim=c(.1, 1e4), main="Animal brain/body size", pch=21, bg="grey", cex=1.5)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.