joon-e / tidycomm

tidycomm: Data Modification and Analysis for Communication Research
https://joon-e.github.io/tidycomm/
GNU General Public License v3.0
15 stars 5 forks source link

visualize() #23

Closed MarHai closed 1 year ago

MarHai commented 1 year ago

Given the change to returning tibble-resolvable objects (rather than just tibbles), we could implement visualize() generic functions that allow to visualize wherever it makes sense. Here are some suggestions:

I would expect the produced plots to always represent ggplot visualizations (no plot() visualizations). Also, we could consider returning the object just as passed in (for chaining consistency) and just output the plots. This way, we could also output multiple plots, as could be the case for the visualization.regress.

Thoughts?

joon-e commented 1 year ago

Really like this idea! The implementation would be closely linked to #24, so we may want to decide here first. I'll also think more about potential visualizations.

Also making a mental note here that visualize() is one of the generics implemented by the generics package, so we should use this as well.

LKobilke commented 1 year ago

Just skimmed the ppts of our master students. They also learn how to interpret residual plots to check for homoscedasticity, so we might want to add this to regress() for upwards compatibility. + qq-plots or pp-plots.

See here: Regress_inspect

MarHai commented 1 year ago

See #32

Updates: