Here are two approaches. The first changes the device region, and so
the plot is drawn differently. The second changes the aspect ratio in
ggplot2. It is possible to change the underlying numbers too, but
this will not necessarily change the appearance.
data(mtcars)
a <- ggplot(data = mtcars, aes(x = as.factor(cyl), y = mpg)) +
geom_point(size = 4, alpha = 0.3)
dev.new(width = 3, height = 10)
a
dev.new()
a + coord_equal(ratio = 1)
HTH,
Josh
P.S. Sorry for the repeat, forgot to copy the group (my reply to all
button moved and my poor brain has yet to adapt)
> --
> You received this message because you are subscribed to the ggplot2 mailing list.
> Please provide a reproducible example: http://gist.github.com/270442
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2
>
--
Joshua Wiley
Ph.D. Student, Health Psychology
Programmer Analyst II, ATS Statistical Consulting Group
University of California, Los Angeles
https://joshuawiley.com/