0

super new to R here. I'm trying to plot a graph to visualise my aggregate group data (consists of numeric and categorical data). Please help anyone!

DD %>%
  select(Age_start_treatment, Skeletal_AP, Sex, Treatment_time) %>%
  group_by(Age_start_treatment, Skeletal_AP, Sex) %>%
  summarize(avg_total_treatment_time = mean(Treatment_time, na.rm=TRUE)) %>%

Unable to figure out the next step for the life of me but know I require the use of ggplot().

I need the best chart to plot the patients' age, skeletal class dimension (I,II or III) and sex against the total treatment time

Thanks

jrcalabrese
  • 2,184
  • 3
  • 10
  • 30
  • Welcome to SO. Please make your post [reproducible](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) by providing your dataset. You can provide your dataset by using `dput(DD)` and then copy-pasting the output starting with "structure" in your original question. – jrcalabrese Nov 09 '22 at 17:59

0 Answers0