ggplot2 stat_function with calculated argument for different data subset inside a facet_grid
- 阅读更多 关于 ggplot2 stat_function with calculated argument for different data subset inside a facet_grid
问题 I have a follow up question to how to pass fitdistr calculated args to stat_function (see here for context). My data frame is like that (see below for full data set): > str(small_data) 'data.frame': 1032 obs. of 3 variables: $ Exp: Factor w/ 6 levels "1L","2L","3L",..: 1 1 1 1 1 1 1 1 1 1 ... $ t : num 0 0 0 0 0 0 0 0 0 0 ... $ int: num 75.7 86.1 76.3 82.3 98.3 ... I would like to plot a facet_grid grouped by Exp and t showing the density histogram of int as well as plot the fitted log-normal