Description Usage Arguments Details Value
Force zooming into Y axis.
1 2 3 4 | ForceZoomY(xrange, yrange = NULL, xdata, ydata, space = 0.0125)
ApplyForceZoomY(p, xrange, yrange = NULL, space = 0.0125,
clipping = FALSE, clipping_cols = "value")
|
xrange |
Zoomed range of x axis. |
yrange |
Zoomed range of y axis. If NULL, ydata will be evaluated from xdata and ydata. |
xdata |
Data of x. |
ydata |
Data of y, indices correspond to xdata. |
space |
Spacing factor. |
p |
A ggplot object. |
clipping |
clip value from clipping_cols. |
clipping_cols |
columns to clip. |
When clippling is TRUE, data values are directly clipped (set to NAs). This is a workaround when there are multiple measurements in different units/scales, since I haven't figure out a way to set coords to different group of data in a ggplot object.
ylim
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.