fx.add_factors_to_redDim_df: Adding color values to a data.frame for plotting reduced...

Description Usage Arguments Details Value See Also

View source: R/prep_dimRedPlot_fx.R

Description

Adding color values to a data.frame for plotting reduced dimensions

Usage

1
2
3
fx.add_factors_to_redDim_df(object, df_to_plot, color_by = NULL,
  shape_by = NULL, size_by = NULL, circle_by = NULL,
  exprs_values = NULL)

Arguments

object

SCE or SCESet object

color_by

entry of either colData(object), rowData(object), rownames(object), which will be used to assign either discrete or continous color schemes. Alternatively, you can supply a list with a label stored in list$title and values stored in list$result (result should be as long as dim(object)[2]. Default: NULL

shape_by

default: NULL

size_by

default: NULL

circle_by

Used for encircling points of interest; default: NULL

exprs_values

The name of the expression values which will be used for the legend of the plot.

dt_to_plot

data.frame fit for ggplot2-based routines

Details

Basically a wrapper around fx.choose_vis_values_sce that already makes smart assumptions about reasonable checks for any of the factors specified via size_by, color_by, shape_by. This function will add columns for those factors so that they can be conveniently used for faceting etc. using ggplot2.

Value

data.frame fit for plotting with ggplot2 with additional columns for color, shape and size

See Also

fx.choose_vis_values_sce


evanbiederstedt/sandbox documentation built on May 26, 2019, 12:31 p.m.