easystats / easystats/modelbased

add_data for estimate_contrasts

Open
#114 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Feature idea :fire:
Dominant language
R
Stars
263
Forks
22
Avg merge
1h 22m
Merged PRs (30d)
11

Description

It would be really nice if the plot method for estimate_contrasts had an argument to add the relevant raw data to the plot, ala:

library(modelbased)
library(see)
library(ggplot2)
model <- lm(Sepal.Width ~ Species, data = iris)
contrasts <- estimate_contrasts(model)
means <- estimate_means(model)

plot(contrasts, means) + geom_jitter2(aes(x = Species, y = Sepal.Width), data = iris, width = .2, height = 0, alpha = .2) + ylab("Sepal.Width")

Created on 2021-05-29 by the reprex package (v2.0.0)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the plot method for estimate_contrasts and the estimate_contrasts and estimate_means examples shown in the issue. Compare the requested plot output with the supplied iris data and confirm that the finished behavior can add the relevant raw observations to the contrasts plot without requiring manual geom_jitter2 layering.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.