Skip to contents

Parameters to customize markers in roboplots. Currently not available by trace.

Usage

set_markers(
  symbol = getOption("roboplot.markers")$symbol,
  size = getOption("roboplot.markers")$size
)

Arguments

symbol

Character. The marker symbol when drawn by roboplot(). Any one of "circle","square","diamond","cross","x", "line" or "star".

size

Numeric. Marker size for markers.

Value

A list of class roboplotr.set_markers

Examples

# You can change the markers `roboplot()` uses by using `set_markers()`.
energiantuonti |>
  dplyr::filter(Suunta == "Tuonti", Alue == "Venäjä") |>
  dplyr::group_by(Alue) |>
  dplyr::mutate(sd = sd(value)) |>
  dplyr::ungroup() |>
  roboplot(
    Alue,
    plot_type = "scatter",
    plot_mode = "scatter",
    markers = set_markers(symbol = "diamond", size = 12)
  )
# You cannot control the markers by trace, but you can use `pattern` in `roboplot()` # with markers if you have set 'plot_mode' to "scatter+line". energiantuonti |> dplyr::filter(Suunta == "Tuonti", Alue == "Venäjä") |> dplyr::group_by(Alue) |> dplyr::mutate(sd = sd(value)) |> dplyr::ungroup() |> roboplot( Alue, plot_type = "scatter", plot_mode = "scatter+line", pattern = set_pattern(Alue, pattern_types = c("Venäjä" = "dot")), markers = set_markers(symbol = "square", size = 8) )