A function that plots a a bar graph with different variations
1 |
df |
A data frame with x variable, y variable |
xvar |
the variable that will form the x-axis |
yvar |
the variable that will form the y-axis |
ascending |
Boolean deciding the sorting order of the bars.Default:FALSE |
ordered |
Boolean deciding whether bars should be sorted or not sorted.Default:FALSE |
errorbar |
Boolean deciding whether to plot error bars of not. Default:FALSE |
xlabel |
the x label of the plot |
ylabel |
the y label of the plot |
title |
the title of the plot |
flip |
Boolean deciding whether to flip the bar plot or not. Default:FALSE |
angle |
the angle position of the lables |
sizee |
the size of title |
sizelabel |
the size of labels |
dcm |
the number of decimal numbers |
ylimm |
Set the ylim scale |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.