Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Automatically Create n-Dimensional Plots From Tabular Data

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
NotificationsYou must be signed in to change notification settings

selkamand/gg1d

Repository files navigation

CRAN statusR-CMD-checkLifecycle: experimentalCodecov test coverageGitHub Issues or Pull Requestscode sizeGitHub last commitr-universe

Warning

We strongly recommend that you migrate to theggEDA package, which provides aricher feature set, ongoing maintenance, and enhanced performance. Thegg1d package is no longer under active development and will onlyreceive essential bug-fixes.

Effortlessly visualize all columns in a data frame with verticallyaligned plots and automatic plot selection based on variable type. Plotsare fully interactive, and custom tooltips can be added.

A graphical user interface to all gg1d visualisations is available athttps://CCICB.github.io/featurepeeker/

Why 1 dimensional plots?

To understand trends in your data, especially correlative relationshipsbetween 2 or more features, it can be useful to densely stack visualrepresentations of each feature vertically, regardless of data type. Byunifying the$x$-axis across each plot,gg1d turns a series of 1Dplots into an$n\text{-dimensional}$ visualization where$n = \text{number of columns in dataset}$. Note the key idea of gg1d isto ‘preserve the individual.’gg1d doesNOT plot distributionsof properties, but rather each value of a feature for eachsubject/observation in the dataset.

gg1d can be used for exploratory data analysis (EDA) or to producepublication quality graphics summarizing a dataset.

Installation

install.packages("gg1d")

Development Version

You can install the development version of gg1d fromGitHub with:

if (!require("remotes"))    install.packages("remotes")remotes::install_github("selkamand/gg1d")

Or from R-universe with:

install.packages("gg1d",repos="https://ropensci.r-universe.dev")

Quick Start

For examples of interactive gg1d plots see thegg1dgallery

# Load librarylibrary(gg1d)# Read datapath_gg1d<- system.file("example.csv",package="gg1d")df<- read.csv(path_gg1d,header=TRUE,na.strings="")# Plot data, sort by Glassesgg1d(df,col_id="ID",col_sort="Glasses",interactive=FALSE,verbose=FALSE,options= gg1d_options(legend_nrow=2))

Customise Colours

Customise colours by supplying a named list to thepalettes argument

gg1d(df,col_id="ID",col_sort="Glasses",palettes=list("EyeColour"= c(Brown="rosybrown4",Blue="steelblue",Green="seagreen"  )),interactive=FALSE,verbose=FALSE,options= gg1d_options(legend_nrow=2))

Parallel Coordinate Plots

For datasets with many observations and mostly numeric features,parallel coordinate plots may be more appropriate.

ggparallel(data=minibeans,col_colour="Class",order_columns_by="auto",interactive=FALSE)#> ℹ Ordering columns based on mutual information with [Class]

 ggparallel(data=minibeans,col_colour="Class",highlight="DERMASON",order_columns_by="auto",interactive=FALSE )#> ℹ Ordering columns based on how well they differentiate 1 group from the rest [DERMASON] (based on mutual information)

 ggparallel(data=minibeans,order_columns_by="auto",interactive=FALSE )#> ℹ To add colour to plot set `col_colour` to one of: Class#> ℹ Ordering columns to minimise crossings#> ℹ Choosing axis order via repetitive nearest neighbour with two-opt refinement

Community Contributions

All types of contributions are encouraged and valued. See ourguide tocommunitycontributions fordifferent ways to help.

About

Automatically Create n-Dimensional Plots From Tabular Data

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Contributing

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp