A new and more powerful visualization tool based on s-plot
, which based on bash
, R
mainly ggplot2
to make
the plot easily and flexibly, Developed by Dechun Lin.
This lists the basic information for using r-plot
.
-
A UNIX based operating system.
-
R v3.4.1 or higher installed.
Download r-plot from GitHub:
git clone https://github.com/lindechun/r-plot
And then, install required modules.
$ cd /your/path/to/r-plot/bin/
$ Rscript dependencies.R
$ R
> webshot::install_phantomjs()
> q()
- you will need to add
/your/path/to/r-plot/bin/
to your PATH environment variable.
Please type r-plot
in command line directly to have the latest list.
#### Lines
line
#### Bars
barplot
colorLegend
#### Dots
point
point3d
pca
#### Boxplot
boxplot
#### Histogram
histogram
#### Areaplot
areaplot
#### Density
density
density2d
#### Cluster
hcluster
pheatmap
#### Pie
pie
#### Venn
venn
#### Other
enrichmentPlot
png2eps
See /your/path/to/r-plot/data/
for test data set.
r-plot [pie/point3d/histogram/areaplot/../..] [options]
See /your/path/to/r-plot/example/
for example of 15 plot classes.
-
Width, Height, Resolution, type of output pictures
Default, width and height is automatic set-up, one can give
number
to-w
to change it, givenumber
to-u
to change height. Givenumber
to-r
to alter resolution instead of using300
as default.8 picture formats are supported,
eps/ps
,tex
(pictex),pdf
,jpeg
,tiff
,bmp
,svg
andwmf
, withpdf
as default. Give any mentioned string to-E
to change output format. -
Legend position
Defult, the legend is posited at the right of pictures. One can give
top
to-P
to put the legend above pictures. Other accepted strings to-p
isbottom
,left
,right
, orc(0.008,0.8)
. The two element numerical vactor indicats the reltaive position of legend in pictures. 0.008 means position relative y-axis and 0.8 means position relative to x-axis. Specially,c(1,1)
put legends at top-right. -
Title, xlab, ylab of picture
One can set title, xlab, ylab with
-t
,-x
,-y
. -
themes for output picture One can give theme_classic2, theme_classic3, theme_cin to
-T
to set theme.