Skip to content
/ ggparci Public
forked from HBPMedical/ggparci

Parallel coordinates plot with groups medians and their confidence intervals

Notifications You must be signed in to change notification settings

shay-y/ggparci

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ggparci

Parallel Coordinates Plot with Groups medians and their Confidence Intervals

The main function ggparci plots parallel coordinates (gg)plot, in which each line connects the variables medians for each group.
Confidence "bands" for the medians are added to each line. This allows the assessment of groups (clusters) separations.
The variables are normalized to [0,1] scale prior to plotting.

The goal is to allow the comparison of several groups across several variables, with variability assessment via the confidence intervals.

Installation

To install the latest ("cutting-edge") GitHub version run:

# You'll need devtools
install.packages.2 <- function (pkg) if (!require(pkg)) install.packages(pkg);
install.packages.2('devtools')
# make sure you have Rtools installed first! if not, then run:
#install.packages('installr'); install.Rtools()

devtools::install_github("ropensci/plotly") # you will probably benefit from the latest version of plotly


devtools::install_github('HBPMedical/ggparci')

Example

Some basic examples:

library(ggparci)

ggparci(iris, groups_column = "Species")
ggparci(normalize(iris), groups_column = "Species")
ggparci(percentize(iris), groups_column = "Species")

# select only some of the variables
# plot a line for each observation
# and dont plot the CIs
ggparci(percentize(iris),columns = 1:3, groups_column = "Species", include_obs_lines = T, alpha_ci_bands = 0)

# display each group in a different facet
ggparci(data = normalize(iris), groups_column = "Species", groups_in_facets = T)

# flip the plot
ggparci(data = normalize(iris), groups_column = "Species", flip_coords = T)

About

Parallel coordinates plot with groups medians and their confidence intervals

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%