| ENAplot | R Documentation |
The ENAplot R6 class provides a structure for visualizing ENAset objects using plotly. It encapsulates the ENAset data, the plotly visualization, and related plotting parameters.
The ENAset object from which the ENAplot was constructed.
The plotly object used for data visualization.
Axes information for the plot (TBD).
Point information for the plot (TBD).
Color palette used for plotting (TBD).
Indicates whether the plot has been rendered (TBD).
enaset- The ENAset object from which the ENAplot was constructed
plot- The plotly object used for data visualization
axesA list or object specifying the axes configuration for the ENA plot, such as axis labels, limits, or scaling.
pointA structure representing the data points to be plotted, including coordinates and visual properties.
paletteA set of colors or a function defining the color scheme used for plotting elements in the ENA plot.
plottedA logical or status indicator showing whether the plot has been rendered or updated.
showticklabelsLogical. Indicates whether to show tick labels on the axes.
autosizeLogical. Indicates whether the plot should automatically resize.
automarginLogical. Indicates whether the plot should automatically adjust margins.
axispaddingNumeric. Padding factor for the axes. Create ENApolot
new()ENAplot$new(
enaset = NULL,
title = "ENA Plot",
dimension.labels = c("", ""),
font.size = 14,
font.color = "#000000",
font.family = "Arial",
scale.to = "network",
...
)enasetAn ENA set object containing the data to be plotted.
titleThe title of the plot.
dimension.labelsLabels for the dimensions shown in the plot.
font.sizeNumeric value specifying the font size for plot text.
font.colorColor value for the plot text.
font.familyFont family to use for plot text.
scale.toNumeric value to scale the plot axes.
...Additional arguments passed to the plotting function. #'
showticklabelsLogical; whether to display axis tick labels.
autosizeLogical; whether the plot should automatically size itself.
automarginLogical; whether the plot should automatically adjust margins.
axispaddingNumeric value specifying padding around axes.
ENAplot Print ENA plot
print()ENAplot$print()
Get property from object
get()ENAplot$get(x)
xcharacter key to retrieve from object
value from object at x
clone()The objects of this class are cloneable with this method.
ENAplot$clone(deep = FALSE)
deepWhether to make a deep clone.
# Example usage:
# enaplot <- ENAplot$new(enaset = myENAset)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.