r/RStudio • u/Dependent_Squash7572 • Sep 26 '22
R Studio code help
/r/DataAnalysts/comments/xot68g/r_studio_code_help/
1
Upvotes
1
Sep 26 '22
[removed] — view removed comment
1
u/Dependent_Squash7572 Sep 26 '22
Yea its the google cert capstone project. Thank you, yes I'm not trying to "copy"exactly but if I understand the code I can understand how I need to change it. I'll will give this a try in the morning. Thanks again
1
u/dr_canak Sep 26 '22
So, this is a stacked bar chart and grouped bar chart, seemingly rolled into 1. And there appear to be 2 groupings, activity level and day of week.
Here is a similar example:
https://statisticsglobe.com/draw-stacked-bars-within-grouped-barplot-r
If you like this example...
You can facet by day of week
You have 4 groups (each level of activity)
Three of your levels of activity belong to 1 stack ("x"), and your sedentary level would belong to stack "y".
From there:
Should get you there.