Skip to content

Label Option Bug for Factor Variables #131

@mcfibb

Description

@mcfibb

Hey there @dustinfife --

I am running into issues with labeling the z term in the following: flexplot( y ~ x + z, dta)

I’ve tried to leverage bins =, breaks = , and labels = all to no effect; the result remains vs labels. Is labeling z function different when z is a factor variable?

Here's a reproducible example:

library(flexplot)
d <-exercise_data
flexplot(weight.loss~motivation + gender, data=d, se=FALSE,
         labels=list(gender = c("Men", "Women")))

This doesn't work either:

library(flexplot)
d <-exercise_data
flexplot(weight.loss~motivation + gender, data=d, se=FALSE,
       breaks = list(gender = c(1,2)),
       labels=list(gender = c("Men", "Women")))

Any ideas?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions