ZZWTheme: ZZWTheme

Description Usage Arguments Author(s) Examples

Description

ggplot theme

Usage

1
ZZWTheme(type = c("common", "classic"))

Arguments

type:

'common', 'classic'

Author(s)

Zhiwei Zhou zhouzw@sioc.ac.cn

Examples

 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'))

JustinZZW/ZZWtool documentation built on March 7, 2020, 11:06 a.m.