Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

chart_labels

Modify axis and plot labels


Description

Add labels to a chart, labels can be specified for x axis, y axis and plot.

Usage

chart_labels(x, title = NULL, xlab = NULL, ylab = NULL)

Arguments

x

an ms_chart object.

title, xlab, ylab

Text to add

Examples

mylc <- ms_linechart(data = browser_ts, x = "date", y = "freq",
  group = "browser")
mylc <- chart_labels(mylc, title = "my title", xlab = "my x label",
  ylab = "my y label")

mschart

Chart Generation for 'Microsoft Word' and 'Microsoft PowerPoint' Documents

v0.3.0
MIT + file LICENSE
Authors
David Gohel [aut, cre], ArData [cph], YouGov [fnd], Rokas Klydzia [ctb] (custom labels), David Camposeco [ctb] (chart_data_smooth function), Dan Joplin [ctb] (fix scatter plot data structure)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.