RGGPlot#
An RGGPlot pane renders an r2py-based ggplot2 figure to png and wraps the base64-encoded data in a bokeh Div model.
Use pn.ui.RGGPlot to create this component.
API#
.. py:class:: RGGPlot(object=None, **params) :module: panel.pane.plot
An RGGPlot pane renders an r2py-based ggplot2 figure to png and wraps the base64-encoded data in a bokeh Div model.
.. rubric:: Methods
.. autosummary::
applies
.. !! processed by numpydoc !!
Parameter Definitions
Parameters inherited from:
:class:`panel.viewable.Layoutable`: align, aspect_ratio, css_classes, design, min_width, min_height, max_width, max_height, styles, stylesheets, tags, width_policy, height_policy, sizing_mode, visible
:class:`panel.viewable.Viewable`: loading
:class:`panel.pane.base.PaneBase`: margin, default_layout, object
:class:`panel.pane.markup.HTMLBasePane`: enable_streaming
:class:`panel.pane.image.FileBase`: embed
:class:`panel.pane.image.ImageBase`: alt_text, caption, fixed_aspect, link_url, target
height = Integer(allow_None=True, bounds=(0, None), default=400, inclusive_bounds=(True, True), label='Height')
The height of the component (in pixels). This can be either
fixed or preferred height, depending on height sizing policy.
width = Integer(allow_None=True, bounds=(0, None), default=400, inclusive_bounds=(True, True), label='Width')
The width of the component (in pixels). This can be either
fixed or preferred width, depending on width sizing policy.
dpi = Integer(bounds=(1, None), default=144, inclusive_bounds=(True, True), label='Dpi')
Scales the dpi of the ggplot figure.
.. py:method:: RGGPlot.applies(object: ~typing.Any) -> float | bool | None :module: panel.pane.plot :classmethod:
Returns boolean or float indicating whether the Pane
can render the object.
If the priority of the pane is set to
`None`, this method may also be used to define a float priority
depending on the object being rendered.
..
!! processed by numpydoc !!