powered by
Get aspect information of a ggplot
getAspectRatio(p)
A ggplot object
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