jacob-long / jacob-long/interactions

Cat_plot converts numeric predictor variable to categorical without warning

Open
#65 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
R
Stars
135
Forks
19
PR merge metrics
No merged PRs in 30d

Description

Using 'cat_plot' with a continuous predictor variable converts the predictor into a character variable. This means x axis labels can be very messy as they overlap and its difficult (or maybe impossible) to set breaks so these dont overlap. I had this issue but i eventually realised i should have been using 'interact_plot' instead of 'cat_plot'.

If 'cat_plot' tested for the variables being numeric before plotting and issued a warning that 'interact_plot' is better suited to plotting these variables it might save other users making this same mistake.

Thanks for a great package!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the cat_plot entry point and trace how continuous predictor variables are handled before plotting. Compare the behavior with interact_plot; done means numeric predictors trigger a warning recommending interact_plot, with the existing plotting behavior otherwise understood and verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.