⚠️There's a newer version (0.1.1) of this package. Take me there.

cocoreg

cocoreg is an R-package for extracting shared variation in collections of datasets using regression models.

A minimal usage example:

library(cocoreg)
dc <- create_syn_data_toy()
ccr <- cocoreg(dc$data)
shared.by.all.df <- variation_shared_by(dc, 'all') #only on synthetic datasets
ggplot_dclst(list(observed = dc$data, shared = shared.by.all.df, cocoreg = ccr$data))

 


library(reshape) #importing from namespace does not work as expected
ggcompare_dclst(list(shared = shared.by.all.df, cocoreg = ccr$data))

 

Overview

The most important functions in cocoreg are:

  • cocoreg() which extracts shared variation from a collection of datasets

  • Functions to visualize output such as ggplot_dclst() and ggcompare_dclst() for lists of data collections, ggplot_dflst() for lists of data.frames (i.e. one data collection) and ggplot_df() for a single data.frame (a dataset)

Installation

Install the release version from CRAN:

install.packages("cocoreg")

Or the development version from GitHub:

# install.packages("devtools")
# library(devtools)
devtools::install_github("bwrc/cocoreg-r")

Copy Link

Version

Down Chevron

Install

install.packages('cocoreg')

Monthly Downloads

23

Version

0.1.0

License

MIT + file LICENSE

Maintainer

Last Published

May 3rd, 2016

Functions in cocoreg (0.1.0)