ggplotLims | R Documentation |
Get axis limits from a ggplot2 plot object
ggplotLims(x)
x |
ggplot2 plot object |
named vector of plot axis limits
library(ggplot2)
dat <- data.frame(
x = rnorm(1000),
y = rnorm(1000))
p <- ggplot(dat, aes(x = x, y = y )) +
geom_point()
ggplotLims(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.