graphics.Rmd
Momocs2 as a shape manipulation and morphometrics package is chiefly (and pretty much only) concerned with plotting shape(s).
Momocs2 graphics all use ggplot2
graphics (todo link Mombook) and, where that makes sense, use tidyevaluation (todo link Mombook).
Momocs2 graphical methods try hard to use minimal but sensible default. I do not want to have functions with 50 arguments, that would anyway be redundant due to their ggplot2
nature. If you want to change something, just start from a recipe here, or do it yourself using ggplot2
methods.
Each object have a default method, that can be obtained with the good old plot
. I realize that is really heretic to use plot()
to obtain ggplot2
, but I think it’s simple and useful.
ggplot2
graphicsAll MomX, and thus Momocs2, graphics rely on ggplot2. If you do not know it at all, or do not master it yet, there is nothing to be afraid of, really. An by the way, you do not need extensive ggplot2
, recipes below are likely to cover your needs.
I do not want to enter the infinite and slippery discussion of “why ggplot2”: just like anything else, ggplot2
has its detractors and evagelists. I obviously fall more in the second category for several reasons:
ggplot2
fault.legend()
?ggplot2
just because it want a tibble
to start with.Overall, I think using ggplot2
as the main graphics engine in MomX is a good choice and if you do not agree, it is likely because you think you can do better from scratch, so do not chew the cud and go ahead ;-)