bootstrap_phenotype: Perform a bootstrap analysis across groups and within each...

Description Usage Arguments Value Examples

View source: R/bootstrap_phenotype.R

Description

Bootstrap comparison between groups and visualizes the significantly different features in a plasticity phenotype.

Usage

1
2
3
4
5
6
bootstrap_phenotype(
  features_df_row = features_df_row,
  condition_list = condition_list,
  group_label = group_label,
  reference_group = reference_group
)

Arguments

features_df_row

A dataframe that contains all features to be analyszed with bootstrap comparison. Specify row names for each observation must contain the experimental group.

condition_list

A list of factors indicating the group identifiers as they appear in the data frame (row names)

group_label

X-axis title.

reference_group

A character string of the reference group as it appears in the row name. This indicates the group against which all significance comparisons are made.

Value

Plots significance phenotype for each group, where colored groups are significantly different than the reference group. Red is significant and greater than normal, blue is significant and less than the reference group. Stores object sig.phen in your Global Environment. sig.phen contains ggplot visualization of each comparison.

Examples

1
2
3
4
5
6
7
8
9
bootstrap_phenotype(
    features_df_row = NewFeatures[,ordered_nf_colnames],
    condition_list = c('  normal  ',
                       '  1wk MD  ',
                       '  fluoxetine + 1wk MD  ',
                       '  fluoxetine  '),
    reference_group = '  normal  ',
    group_label = "\nRearing Conditions"
    )

visualneurosciencelab/PlasticityPhenotypes documentation built on Sept. 7, 2020, 2:18 p.m.