chem_clustered.bar: Creates a clustered bar graph

View source: R/chem_clustered.bar.R

chem_clustered.barR Documentation

Creates a clustered bar graph

Description

Creates a clustered bar graph

Usage

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])

Arguments

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 fillvar

colors

A character vector containing the names of the R colors to color the plot with

Value

A plot


ismayc/chemistr documentation built on Feb. 4, 2023, 12:44 p.m.