Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plot: detect paths that are definition variables and show label instead of value #75

Open
tbates opened this issue Jun 2, 2019 · 3 comments
Assignees
Labels
graphics/UI plot, tables, summary etc. Models New model types for umx
Projects
Milestone

Comments

@tbates
Copy link
Owner

tbates commented Jun 2, 2019

Problem: plot shows the values on paths. But for label = "data.def", this is misleading (value is whatever the path was fixed at, and the path takes a subject-specific value...

Desired: plot.MxRamModel checks the label for each path, and, if it matches ^data\., shows this label on the path, even if pathLabels = values for the overall model.

note: relevant for #74, moderatedBy

@tbates tbates added graphics/UI plot, tables, summary etc. Models New model types for umx labels Jun 2, 2019
@tbates tbates added this to the Version 3.0 milestone Jun 2, 2019
@tbates tbates self-assigned this Jun 2, 2019
@tbates tbates added this to To do in new models via automation Jun 2, 2019
@tbates tbates added this to To do in graphics via automation Jun 2, 2019
@tbates
Copy link
Owner Author

tbates commented Jun 3, 2019

moderator with label

@mcneale
Copy link
Collaborator

mcneale commented Jun 4, 2019

It would be nice to have a defvar.row= argument so that any value in the dataset could be displayed. Another option would be to put the minimum & maximum values. Later on we can put a violin plot on it :).

@tbates
Copy link
Owner Author

tbates commented Jun 30, 2019

This would be a test model

# Easier to add xy to data...
x     = "disp"
y     = "mpg"
def   = "am"
dummy = paste0(x, "_by_", def)
m1 = umxRAM("def_test", data = mtcars,
	umxPath(v.m. = c(x, y, def)),
	umxPath(c(x, def), to = "mpg"),
	umxPath(v0m0 = dummy), # latent called `x_by_def` with 0 variance and mean
	umxPath(x, to = dummy, fixedAt= 0, label = paste0("data.", def)),
	umxPath(dummy, to = y)
)

@tbates tbates removed this from To do in new models Dec 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
graphics/UI plot, tables, summary etc. Models New model types for umx
Projects
graphics
  
To do
Development

No branches or pull requests

2 participants