Learn R Programming

SveltePlots (version 0.1.0)

mutate_mapping: Internal: Mutate Mapping for Chart Data

Description

Prepares and modifies data mappings for SveltePlot chart rendering. This function is internally used by the `sp()` function to handle data transformation based on chart type and aesthetic mappings.

Usage

mutate_mapping(
  data,
  mapping,
  create_configurations,
  size,
  alpha,
  tooltip,
  colors = NULL,
  mode,
  include_legend,
  breaks,
  facet_var
)

Value

Modified chart configurations.

Arguments

data

Data frame to be processed.

mapping

Aesthetic mappings created by `spaes()`.

create_configurations

Function to create default configurations for charts.

size,

alpha, tooltip Visual properties for the chart.

colors

Custom colors for the chart, if specified.

mode

Specific mode for bar charts ("stacked", "grouped", etc.).

include_legend

Logical indicating whether to include a legend.

breaks

Break points for histograms.