Description Usage Arguments Details Value Author(s)
This function takes one observation and makes varplots for multiple variales, if allows comparison if a second observation is passed as shadowdata
1 2 | MIDEbar(data, vars, varlabels, barcolor = MIDEpallete, shadowdata,
horizontal = FALSE)
|
data |
a dataframe with only one row |
vars |
a character vector with the names of the columns to plot |
varlabels |
character vector with the names to be used in the plot |
barcolor |
list of colors to be used in the bars, defaults to MIDEpallete |
shadowdata |
a second observation to plot, this one has a low alpha, recomended for highest case |
horizontal |
Should the plot be horizontal?, defaults to FALSE |
This function takes a single observation in a dataframe, makes a barplot using as x values the variables gives in vars, and as y values the values in the variables themselves. If a second observation is given in shadowvar this one is shown with a low alpha to be used as comparison.
a ggplot graph
Andr<c3><a9>s Mej<c3><ad>a
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.