Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

lindechun/r-plot

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

r-plot

Introduction

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.

r-plot Installation Notes

Required dependencies

  • A UNIX based operating system.

  • R v3.4.1 or higher installed.

Installation

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.

Currently supported plots

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

Basic test data set

See /your/path/to/r-plot/data/ for test data set.

Usage

r-plot [pie/point3d/histogram/areaplot/../..] [options]

See /your/path/to/r-plot/example/ for example of 15 plot classes.

Basic layouts and themes

  • Width, Height, Resolution, type of output pictures

    Default, width and height is automatic set-up, one can give number to -w to change it, give number to -u to change height. Give number to -r to alter resolution instead of using 300 as default.

    8 picture formats are supported, eps/ps, tex (pictex), pdf, jpeg, tiff, bmp, svg and wmf, with pdf 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 is bottom,left,right, or c(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.

About

A simple plot library based on `bash`, `R` mainly `ggplot2` to make the plot easily and flexibly

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.