make_overlapping_score_histogram | R Documentation |
Make Histogram of sample scores with both classes overlapping
make_overlapping_score_histogram( scores.df, donor0 = "MARS0022.F.16s", donor1 = "MARS0043.F.16s", class1.color = "#DE4968FF", class0.color = "#51127CFF", x.label = "Sample Score", y.label = "Frequency", plot.title = "Score Histogram", numbins = 30 )
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) |
class1.color |
hex value, or R color name |
class0.color |
hex value, or R color name |
x.label |
x-axis label |
y.label |
y-axis label |
plot.title |
for ggtitle |
numbins |
breaks for hist |
ggplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.