Skip to content

Make the plots more jittery? #404

@giladfeldman

Description

@giladfeldman

Hi,

JAMOVI creates some great plots, but some of those with the dots just look like they're on a line.

I'm guessing there's something that I can do to make those dots jitter more with ggplot2?
Any help or guidance would be appreciated.

Example:
3-reasons-mixed-anova

The code that creates this plot:

jmv::anovaRM(
    data = s2plot,
    rm = list(
        list(
            label="Reasons",
            levels=c("Waste", "Emotions", "Value", "Past"))),
    rmCells = list(
        list(
            measure="study2_reason_min_waste",
            cell="Waste"),
        list(
            measure="study2_reason_min_neg_emo",
            cell="Emotions"),
        list(
            measure="study2_reason_max_value",
            cell="Value"),
        list(
            measure="study2_reason_consistent_previous",
            cell="Past")),
    bs = Condition,
    effectSize = c("eta", "partEta"),
    depLabel = "Importance",
    rmTerms = ~ Reasons,
    bsTerms = ~ Condition,
    spherTests = TRUE,
    spherCorr = c("GG", "HF"),
    postHoc = list(
        c("Reasons", "Condition"),
        "Reasons"),
    emMeans = ~ Reasons + Condition + Reasons:Condition,
    emmTables = TRUE,
    emmPlotData = TRUE)

How might I tweak that?
I tried looking at s2plotjmv$emm[[3]]$emmPlot$plot but wasn't sure what kind of plot that is. Doesn't look like a ggplot2 I could add "+ geom_jitter()" to, is it?

Not a must and not a big deal, but can maybe add an argument to the JMV functions resulting in plots, or add something to the documentation. And, for those using this package in JAMOVI, maybe even an option to play around with things like the jitter (height/width/etc.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions