You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
xlab is the x-axis label which defaults to the label metadata but uses the variable name if empty
ylab is the y-axis label which defaults to the label metadata but uses the variable name if empty
Outputs:
If both x and y are continuous --> Scatterplot and loess fit
If x is categorical and y is continuous --> Boxplot
If both x and y are categorical --> Grouped bar graph where y-axis is labeled as "Within Group Percent (%)" and bars are labelled with counts
If x is continuous and y is categorical --> Grouped bar graph where y-axis is labeled as "Within Group Percent (%)" and bars are labelled with counts. If number of x values > 15, then convert to deciles first.
Other features should include:
If x is a vector, then the plot should facet_grid or facet_wrap by x
Proposed syntax:
where:
tblis the dataframe containingxandyxis the independent variable (bivariate only)yis the dependent variablexlabis the x-axis label which defaults to the label metadata but uses the variable name if emptyylabis the y-axis label which defaults to the label metadata but uses the variable name if emptyOutputs:
xandyare continuous --> Scatterplot and loess fitxis categorical andyis continuous --> Boxplotxandyare categorical --> Grouped bar graph where y-axis is labeled as "Within Group Percent (%)" and bars are labelled with countsxis continuous andyis categorical --> Grouped bar graph where y-axis is labeled as "Within Group Percent (%)" and bars are labelled with counts. If number of x values > 15, then convert to deciles first.Other features should include:
xis a vector, then the plot shouldfacet_gridorfacet_wrapbyx