powered by
Add labels to a chart, labels can be specified for x axis, y axis and plot.
chart_labels(x, title = NULL, xlab = NULL, ylab = NULL)
An ms_chart object.
ms_chart
an ms_chart object.
title of the chart (displayed above the plot area). Use NULL to remove it.
label for the x axis. Use NULL to remove it.
label for the y axis. Use NULL to remove it.
chart_data_labels(), chart_ax_x(), chart_ax_y()
chart_data_labels()
chart_ax_x()
chart_ax_y()
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" )
Run the code above in your browser using DataLab