Skip to content

Multipanel plot return type #172

Description

@dan-knight

It seems that create.multipanelplot does not return a plot object if a filename is specified (it just writes the plot to the > file). Is that expected behavior? Also, when an object is returned, it seems to be of class "multipanel" - is that something >that was made up for BPG or is that an actual lattice-related class?

Originally posted by @alkaZeltser in uclahs-cds/package-ApplyPolygenicScore#24 (comment)

Off the top of my head, I don't think this should be the case. It would be inconsistent with the other plotting functions. It's possible that there's some technical limitation specific to multipanel plots, but I'd hope that wouldn't be the case. You can see here that it's returning the grob rather than returning the result of write.plot. This is inconsistent with other plotting functions..

The class name is set here. I think that should be changed to include the other trellis/grid classnames (adding multipanel) rather than setting it to only multipanel.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions