VitessceConfigView | R Documentation |
Class representing a view in a Vitessce view config.
View in a VitessceConfig
new()
Create a new view object.
VitessceConfigView$new(component, coordination_scopes, x, y, w, h)
component
A component name.
coordination_scopes
A list of the coordination scope mappings for each coordination type.
x
The x-coordinate of the view in the layout.
y
The y-coordinate of the view in the layout.
w
The width of the view in the layout.
h
The height of the view in the layout.
A new VitessceConfigView
object.
use_coordination()
Link this view to existing coordination scope(s).
VitessceConfigView$use_coordination(c_scopes)
c_scopes
A list of VitessceConfigCoordinationScope
objects to use.
Invisible self, to allow chaining.
use_coordination_by_dict()
VitessceConfigView$use_coordination_by_dict(scopes)
use_meta_coordination()
VitessceConfigView$use_meta_coordination(meta_scope)
set_xywh()
Set the dimensions of the view.
VitessceConfigView$set_xywh(x, y, w, h)
x
The x-coordinate of the view in the layout.
y
The y-coordinate of the view in the layout.
w
The width of the view in the layout.
h
The height of the view in the layout.
Self, to allow chaining.
set_props()
Set additional props for this view.
VitessceConfigView$set_props(...)
...
Any named props to set.
Self, to allow chaining.
to_list()
Convert the object to an R list. Helpful when converting the config to JSON.
VitessceConfigView$to_list()
A list
that can be serialized to JSON using rjson
.
clone()
The objects of this class are cloneable with this method.
VitessceConfigView$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.