ProjectMOSAIC / ggformula

Provides a formula interface to 'ggplot2' graphics.
Other
38 stars 11 forks source link

proposed improvements to ggformula output from `mosaic::mplot()` #167

Open nicholasjhorton opened 1 year ago

nicholasjhorton commented 1 year ago

Here's a sample output of mosaic::mplot() where I think that two improvements would be helpful:

  1. move to base R pipe |> rather than magrittr pipe
  2. suppress the geom_smooth() messages
gf_point(age ~ anysubstatus, data = HELPrct) %>%
  gf_smooth() %>% 
  gf_labs(title = "", caption = "")
`geom_smooth()` using method = 'loess'
rpruim commented 1 year ago

I'm happy to move to |>, and was from the beginning. Perhaps we are far enough along now to do that systematically (all the examples in ggformula still have the old pipe).

I'll have to check if we can suppress the message by explicitly stating which method we want to use.

rpruim commented 1 year ago

Note: The particular issue here is something to deal with in {mosaic}, not in {ggformula}.