psrc / psrcplot

Package for Creating PSRC consistent data visualizations with R
https://psrc.github.io/psrcplot/
GNU General Public License v3.0
2 stars 0 forks source link

Multiple error bars when columns are stacked #93

Open MrichardsPSRC opened 1 month ago

MrichardsPSRC commented 1 month ago

image

I created a facet chart with stacked columns using the psrcplot function, but the error bars are showing as if the columns were "dodge" instead of "stack" as the pos argument

prev_tenure_vis <- static_facet_column_chart(disp_prev_tenure,
                                             x = "prev_rent_own_bin2", y = "prop", fill = "displaced_movers",
                                             facet="survey_year",
                                             ylabel = "% of respondents", xlabel = "Household race",
                                             title = "Displacement by Previous Housing Tenure",
                                             moe = "prop_moe", ncol=2, pos="stack") + theme(
                                               axis.text.x = element_text(size = 14),
                                               axis.text.y = element_text(size = 14),
                                               axis.title.y = element_text(size = 20),
                                               axis.title.x = element_text(size = 20),
                                               plot.title = element_text(size = 24)
                                               )