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
axes
A list or object specifying the axes configuration for the ENA plot, such as axis labels, limits, or scaling.
point
A structure representing the data points to be plotted, including coordinates and visual properties.
palette
A set of colors or a function defining the color scheme used for plotting elements in the ENA plot.
plotted
A logical or status indicator showing whether the plot has been rendered or updated.
showticklabels
Logical. Indicates whether to show tick labels on the axes.
autosize
Logical. Indicates whether the plot should automatically resize.
automargin
Logical. Indicates whether the plot should automatically adjust margins.
axispadding
Numeric. 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",
...
)
enaset
An ENA set object containing the data to be plotted.
title
The title of the plot.
dimension.labels
Labels for the dimensions shown in the plot.
font.size
Numeric value specifying the font size for plot text.
font.color
Color value for the plot text.
font.family
Font family to use for plot text.
scale.to
Numeric value to scale the plot axes.
...
Additional arguments passed to the plotting function. #'
showticklabels
Logical; whether to display axis tick labels.
autosize
Logical; whether the plot should automatically size itself.
automargin
Logical; whether the plot should automatically adjust margins.
axispadding
Numeric value specifying padding around axes.
ENAplot Print ENA plot
print()
ENAplot$print()
Get property from object
get()
ENAplot$get(x)
x
character 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)
deep
Whether to make a deep clone.
# Example usage:
# enaplot <- ENAplot$new(enaset = myENAset)
Run the code above in your browser using DataLab