PlotLog | R Documentation |
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>
axis
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.