Learn R Programming

predict3d (version 0.1.6)

getAspectRatio: Get aspect information of a ggplot

Description

Get aspect information of a ggplot

Usage

getAspectRatio(p)

Arguments

p

A ggplot object

Examples

Run this code
p<-ggplot2::ggplot(data=mtcars,ggplot2::aes(x=.data$wt,y=.data$mpg))+ggplot2::geom_point()
getAspectRatio(p)

Run the code above in your browser using DataLab