View source: R/plots-utility-axes.R
getAxisLimPlot | R Documentation |
ggplot
plot
from the input dataset.Get axis limits for a ggplot
plot
from the input dataset.
getAxisLimPlot(
data,
xVar,
yVar,
xLim = NULL,
yLim = NULL,
facetPars = NULL,
refLineData = NULL
)
data |
Data.frame with data. |
xVar |
String with column of |
yVar |
String with column of |
xLim , yLim |
Numeric vector of length 2 with limits for the x/y axes. |
facetPars |
List with facetting parameters,
passed to the facetting function. Variables should be specified
as character or formula.
For 'wrap' facetting ( |
refLineData |
Data used for the reference lines, as
output of the |
Data.frame with limits of the:
x-axis: 'xmin'/'xmax'
y-axis: 'ymin'/'ymax'
for each element of the facetting variable (if any).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.