-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Proposed syntax:
bivariate_plot(tbl, x, y, xlab, xylab)
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 empty
Outputs:
- If both
xandyare continuous --> Scatterplot and loess fit - If
xis categorical andyis continuous --> Boxplot - If both
xandyare categorical --> Grouped bar graph where y-axis is labeled as "Within Group Percent (%)" and bars are labelled with counts - If
xis 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:
- If
xis a vector, then the plot shouldfacet_gridorfacet_wrapbyx
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels