fx.choose_vis_values_sce: Add visualization factors for ggplot2

Description Usage Arguments Details Value See Also

View source: R/prep_dimRedPlot_fx.R

Description

Add visualization factors for ggplot2

Usage

1
2
3
fx.choose_vis_values_sce(x, by, check_coldata = TRUE,
  cell_control_default = FALSE, check_features = FALSE,
  exprs_values = "counts", coerce_factor = FALSE, level_limit = NA)

Arguments

x

SingleCellExperiment object

by

string indicating which factor will be checked

check_coldata

whether colData(object) should be checked for values of by; default: TRUE

check_features

whether featureNames(object) or rownames(object) should be checked for values of by; default: FALSE, which saves time

exprs_values

which type of expression values will be used if by is a feature

level_limit

maximum numbers of levels that are going to be allowed; usually only applicable if by defines a shape

Details

This function looks through the visualization data and returns the values to be visualized. Either by itself, or a column of colData, or a column of rowData, or the expression values of a feature.

Value

a list with the label of the factor (name) as well as the actual values that are going to be used for the plotting

See Also

fx.add_factors_to_redDim_df


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