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

Square nodes for observed variables #15

Open
FredrikH-R opened this issue Sep 9, 2020 · 2 comments
Open

Square nodes for observed variables #15

FredrikH-R opened this issue Sep 9, 2020 · 2 comments

Comments

@FredrikH-R
Copy link

FredrikH-R commented Sep 9, 2020

I'm having some issues with the interpretability of models drawn with bayesnet. This is more a suggestion for improvements, than an error report, but anyway:

Having identical shapes for latent and observed variables, makes distinguishing between them very challenging, and only doing so with different shadings does not help when you have suboptimal print or when people have problems with their eyes.

Is it possible to change the default observed variable shape to a square? Or at least provide an option for it in the package that does not involve making all sorts of customizations? This would also make the library more compatible with how DAGs are usually presented in for example structural equation modelling.

As a bonus, this would then free up shadings to be used in other ways, to communicate emphasis on certain parts of the graph.

Issues aside though, i really like your tikzlibrary. :)

@FredrikH-R FredrikH-R changed the title Sqyare nodes for observed variables Square nodes for observed variables Sep 9, 2020
@jluttine
Copy link
Owner

jluttine commented Sep 9, 2020

Try:

\node[obs, rectangle] ...

You can pass any normal TikZ options there. obs, latent etc are just some defaults, but you can override them.

At least I think it should work like that. I haven't done anything with TikZ in many years, so I'm a bit rusty.

@jluttine
Copy link
Owner

jluttine commented Sep 9, 2020

And of course you can define your own styles like this:

\tikzstyle{myobs} = [latent,rectangle]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants