View source: R/chem_clustered.bar.R
chem_clustered.bar | R Documentation |
Creates a clustered bar graph
chem_clustered.bar(data, xvar, yvar, fillvar, xlab = "Insert X-axis label", ylab = "Insert Y-axis label", n = 4, colors = hcl(h = seq(15, 375, length = n + 1), l = 65, c = 100)[1:n])
data |
A data frame containing variables to be plotted |
xvar |
The name of the x-variable |
yvar |
The name of the y-variable |
fillvar |
The name of the variable to color the bars by |
xlab |
A string containing the x-axis label |
ylab |
A string containing the y-axis label |
n |
The number of unique entries in |
colors |
A character vector containing the names of the R colors to color the plot with |
A plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.