util.lh2.theme: The default theme of plots

Description Usage Arguments Value Examples

View source: R/utils-plot.R

Description

default ggplot2 theme

Usage

1
2
3
4
5
6
7
util.lh2.theme(
  angle = 45,
  legend.position = "right",
  font.size = 12,
  skip.axis = "",
  only.axis = ""
)

Arguments

angle

int, rotation of x.axis.text

legend.position

char, 'right','left','top','bottom','none'

font.size

int font size of text

skip.axis

char, 'x','y', skip style setting for x,y axis

only.axis

char, 'x','y', only do style setting for x,y axis

Value

a ggplot2 theme

Examples

1
2
3
4
library(ggplot2)
ggplot(mtcars, aes(mpg, wt)) + 
  geom_point() + 
  util.lh2.theme()

6chaoran/lh2util documentation built on Nov. 29, 2020, 1:28 a.m.