make_sample_score_histograms | R Documentation |
Histograms of sample scores by class (makes 3 plots)
make_sample_score_histograms( scores.df, donor0 = "MARS0022.F.16s", donor1 = "MARS0043.F.16s", title0 = "Healthy (59) Sample Scores", title1 = "Asthmatic (36) Sample Scores", class1.color = "#DE4968FF", class0.color = "#51127CFF", both.color = "lightblue", x.label = "Sample Score", numbins = 10 )
scores.df |
dataframe with column named "score" containing numeric score values and "class" column containing class names per sample by row |
donor0 |
control class donor sample name (e.g. healthyPatient32) |
donor1 |
case class donor sample name (e.g. asthmaPatient19) |
title0 |
title for control plot |
title1 |
title for case plot |
class1.color |
hex value, or R color name |
class0.color |
hex value, or R color name |
both.color |
hex value, or R color name |
x.label |
x-axis label |
numbins |
breaks for hist |
3 plots inline
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.