Skip to content

Comments

Introduce plot method mediation_model#19

Draft
cedricbatailler wants to merge 4 commits intomainfrom
feature-plot-method
Draft

Introduce plot method mediation_model#19
cedricbatailler wants to merge 4 commits intomainfrom
feature-plot-method

Conversation

@cedricbatailler
Copy link
Owner

Adds a plot method for functions created with mdt_* functions.

library(JSmediation)

data(ho_et_al)
ho_et_al$condition_c <- build_contrast(ho_et_al$condition,
                                       "Low discrimination",
                                       "High discrimination")
mediation_model <-
  mdt_simple(data = ho_et_al,
             IV = condition_c,
             DV = hypodescent,
             M = linkedfate)

plot(mediation_model)

image

@cedricbatailler cedricbatailler added the enhancement New feature or request label Jul 5, 2021
Merge branch 'main' into feature-plot-method

# Conflicts:
#	NAMESPACE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant