Description Usage Arguments Author(s) Examples
ggplot theme
1 |
type: |
'common', 'classic' |
Zhiwei Zhou zhouzw@sioc.ac.cn
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | mydata <- data.frame(
Lebal = c("linerange1","linerange2","linerange3","linerange4","linerange5"),
xstart = c(3.5,7,12,16,20),
ymin = c(2.5,6.5,3,4.5,3.8),
ymax = c(7.5,9.5,9,13.5,4.2),
class = c("A","A","A","C","C")
)
test <- ggplot(mydata) +
geom_linerange(aes(x = xstart, ymin = ymin , ymax = ymax , colour = class) , size = 1.5)
test
mytheme <- ZZWTheme()
test + mytheme
mytheme2 <- ZZWTheme('classic')
test +
mytheme2 +
theme(axis.text.y = ggplot2::element_text(size = 10, angle = 0,
colour = 'black'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.