theme_ptca2 | R Documentation |
ggplot2
theme that matches the defaults
of the factorial figures in the package PTCA4CATA
theme_ptca2
:
A ggplot2
theme that matches the defaults
of the factorial figures in PTCA4CATA
.
theme_ptca2
is, obviously, a (slightly smarter)
cousin of
PTCA4CATA::theme_ptca
(which will be deprecated in the
near future).
theme_ptca2(mire = TRUE, x0 = 0, y0 = 0, coor.fixed = TRUE, base_family = "")
mire |
(Default = |
x0 |
(Default = 0) the X-axis origin. Relevant only
when |
y0 |
(Default = 0) the Y-axis origin.
Relevant only
when |
coor.fixed |
(Default = |
base_family |
the font family for the text
(e.g., on a mac |
Vincent Guillemot & Hervé Abdi
## Not run:
x <- c(5, 8, 1, 70)
y <- c(10, 12, 20, 50)
( # parentheses are for print
p <- ggplot(as.data.frame(cbind(x, y)), aes(x = x, y = y)) +
geom_point(size = 2, shape = 19) +
theme_ptca2()
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.