【文件属性】:
文件名称:ggwrap::burrito:将ggplot2图包装在多行上
文件大小:127KB
文件格式:ZIP
更新时间:2021-04-24 22:43:07
R
“ ggwrap”将“ ggplot2”图包装在多行上,以使带有长x轴的图更易于阅读。
安装
可以从GitHub安装'ggwrap'的开发版本:
devtools :: install_github( " wilkox/ggwrap " )
用法
ggwrap函数采用两个参数:“ ggplot2”图,以及应包装该图的行数。
这是一个简单的情节。
library( ggplot2 )
library( ggwrap )
plot <- ggplot( economics , aes( x = date , y = unemploy , colour = uempmed )) +
geom_line()
plot
我们可以使用ggwrap将该图包装成四行。
ggwrap( plot , 4 )
【文件预览】:
ggwrap-master
----NAMESPACE(84B)
----NEWS.md(237B)
----DESCRIPTION(541B)
----R()
--------ggwrap.R(4KB)
----.travis.yml(144B)
----.Rbuildignore(74B)
----README.md(1KB)
----man()
--------figures()
--------ggwrap.Rd(619B)
----tests()
--------testthat()
--------testthat.R(56B)
----.gitignore(41B)
----README.Rmd(1KB)