Learn R Programming

rENA (version 0.3.0)

ENAplot: ENAplot Class

Description

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.

Arguments

Fields

enaset

The ENAset object from which the ENAplot was constructed.

plot

The plotly object used for data visualization.

axes

Axes information for the plot (TBD).

point

Point information for the plot (TBD).

palette

Color palette used for plotting (TBD).

plotted

Indicates whether the plot has been rendered (TBD).

Public fields

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

Methods


Method new()

Usage

ENAplot$new(
  enaset = NULL,
  title = "ENA Plot",
  dimension.labels = c("", ""),
  font.size = 14,
  font.color = "#000000",
  font.family = "Arial",
  scale.to = "network",
  ...
)

Arguments

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.

Returns

ENAplot Print ENA plot


Method print()

Usage

ENAplot$print()

Returns

Get property from object


Method get()

Usage

ENAplot$get(x)

Arguments

x

character key to retrieve from object

Returns

value from object at x


Method clone()

The objects of this class are cloneable with this method.

Usage

ENAplot$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

Run this code
# Example usage:
# enaplot <- ENAplot$new(enaset = myENAset)

Run the code above in your browser using DataLab