Description Usage Arguments Value Examples
add multi-lines xlab and ylab
1 2 3 4 5 6 7 | ggplot2.labs.multiLines(
g,
x.labs = NULL,
y.labs = NULL,
fontsize = 7,
padding = 0.4
)
|
g |
a ggplot object |
x.labs |
a vector or list of title for x axis |
y.labs |
a vector or list of title for y axis |
fontsize |
fontsize for both x and y axes |
An arrangeGrob object
1 2 3 4 5 6 | g <- ggplot(iris,aes(x=Sepal.Length,y=Sepal.Width,color=Species))+
geom_point()
ggplot2.labs.multiLines(g,x.labs = list("Sepal Length","unit"),
fontsize = 7,padding =0.3) %>%
Taotao::preview.ggplot(width = 10,height = 7)
@export
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.