get_coordinate_system | R Documentation |
Which coordinate system does a plot use?
get_coordinate_system(p)
p |
A ggplot2 object |
A character string that corresponds to the suffix of a ggplot2
coord_
function, e.g. "cartesian"
.
Other functions for checking coordinate systems:
uses_coordinate_system()
require(ggplot2)
p <- ggplot(data = mpg, mapping = aes(x = displ, y = hwy)) +
geom_point(mapping = aes(color = class)) +
geom_smooth() +
coord_polar()
get_coordinate_system(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.