Learn R Programming

writexl (version 2.0.0)

xl_chart_marker: A marker on a chart series

Description

`xl_chart_marker()` draws a symbol at each point of a series. Line, scatter and radar charts are where they show; on other types Excel ignores them.

`type = "automatic"` asks Excel for the default marker of that series, and is the one type that cannot be given a size or a format --- libxlsxwriter documents that, and Excel drops them, so both are refused here.

Usage

xl_chart_marker(type = NULL, size = NA, format = NULL)

Value

An `xl_chart_marker` object.

Arguments

type

The symbol: `"automatic"`, `"none"`, `"square"`, `"diamond"`, `"triangle"`, `"x"`, `"star"`, `"short_dash"`, `"long_dash"`, `"circle"` or `"plus"`.

size

The symbol's size in points, 2 to 72.

format

An [xl_format()] styling the symbol: [xl_border()] for its outline, [xl_fill()] for its fill or pattern.

See Also

[xl_chart_series]

Other images and charts: xl_chart(), xl_chart_axis(), xl_chart_error_bars(), xl_chart_labels(), xl_chart_legend(), xl_chart_series(), xl_chart_table(), xl_chart_trendline(), xl_chartsheet(), xl_image()

Examples

Run this code
xl_chart_marker(type = "circle", size = 8)
xl_chart_marker(type = "none")

Run the code above in your browser using DataLab