ibecav / CGPfunctions

Powell Miscellaneous Functions for Teaching and Learning Statistics
Other
25 stars 11 forks source link

Chang linetype based on a grouping factor #30

Closed nzechrist closed 4 years ago

nzechrist commented 4 years ago

If I print the interaction plot in back and white, I am unable to differentiate the groups because the lines are solid for the entire group. That also applies for the points. I want to be able to vary the linetype to match one of the factors. For example, If I have a factor with two levels, I want to use solid line for level 1 and broken lines for level 2.

ibecav commented 4 years ago

For now I'm going to implement the simplest change which is to simply tie both the interaction linetype and the shape of the dots to the grouping variable. ggplot will automatically cycle through the options for you. When I have a chance I'll look at giving the user some choice.

ibecav commented 4 years ago

Same as last time I can't update CRAN version yet but you can get this version from github