powered by
Plot variable distribution on two factors from the dataset.
plotvar_twofactor(dataset, variable, meta.var1, meta.var2, colour = "darkblue", title = "", xlabel = NULL, ylabel = NULL)
list representing the dataset from a metabolomics experiment.
variable's name.
first metadata's variable.
second metadata's variable.
colours of the bodies of the boxplots.
title of the plot.
x-axis label.
y-axis label.
Returns the plot object from ggplot function.
# NOT RUN { ## Example of plotting a variable's distribution with 2 factors data(cassavaPPD) plotvar_twofactor(cassavaPPD, "399.3", "varieties", "ppds") # }
Run the code above in your browser using DataLab