-
Notifications
You must be signed in to change notification settings - Fork 20
Closed
Labels
wishlistFeatures we'd like to supportFeatures we'd like to support
Description
Thanks:
Grant @grantmcdermott, the project looks really nice and useful, thanks!
Wishlist:
I just wanted to put on the wishlist that in addition to numeric x and y, it would be great if the factor-based plot() flavors were also supported in plot2(). Especially the plots where y is a factor are in my opinion underappreciated in base R. (It's not surprising that I would say that because I implemented these...)
Plots:
In plot(x, y, ...) and plot(y ~ x, ...) we have the following:
xNumeric |
Factor |
|
|---|---|---|
y Numeric |
Scatterplot | Parallel boxplots |
| Factor | Spinogram (Spineplot with histogram-style breaks in x) |
Spineplot (Flavor of mosaic plot) |
Examples:
data("SwissLabor", package = "AER")
plot(income ~ age, data = SwissLabor) ## Numeric ~ Numeric
plot(income ~ foreign, data = SwissLabor) ## Numeric ~ Factor
plot(participation ~ age, data = SwissLabor) ## Factor ~ Numeric
plot(participation ~ foreign, data = SwissLabor) ## Factor ~ Factor
It would be great if the plots above would work with plot2() as well - and if the coloring and grouping etc. would also be supported.
GM edit: adding checklist to track
- Numeric ~ Numeric
- Numeric ~ Factor (Support
type = "boxplot"#154) - Factor ~ Numeric
- Factor ~ Factor
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
wishlistFeatures we'd like to supportFeatures we'd like to support