How to pass arguments from within a function to ggplot stat_summary function
I am trying to create a faceted box plot within a function to do an exposure-response analysis on patient data. The plot is to be faceted by category, with exposure on the y-axis and a categorical response on the x-axis. I would also like to annotate the plot with the number of observations.
R: How to automate a variable creation procedure where I need to create a separate variable for each level of an existing variable
I am trying to create a graph with different facets but each facets have the same lines and the only difference among the facets is that each facet highlights a different line (i.e., the only difference is the alpha values of the lines).
How to remove a part of a custom function when using it in R?
I have a custom function, and it works well.