R/package.R
mschart.Rd
It lets R users to create Microsoft Office charts from data, and then add title, legends, and annotations to the chart object.
The graph produced is a Microsoft graph, which means that it can be edited in your Microsoft software and that the underlying data are available.
The package will not allow you to make the same charts as with ggplot2. It allows only a subset of the charts possible with 'Office Chart'. The package is often used to industrialize graphs that are then consumed and annotated by non-R users.
The following charts are the only available from all possible MS charts:
barcharts: ms_barchart()
line charts: ms_linechart()
scatter plots: ms_scatterchart()
area charts: ms_areachart()
These functions are creating a 'chart' object, it can be customized;
by using options specific to the chart (with chart_settings()
),
by changing the options related to the axes (with chart_ax_x()
and chart_ax_y()
),
by changing the options related to the labels (with chart_data_labels()
),
by changing the colors, line widths, ... with functions
by changing the general theme with function chart_theme()
,
by changing the title labels with function chart_labels()
.
You can add a chart into a slide in PowerPoint with function ph_with.ms_chart()
.
You can add a chart into a Word document with function body_add_chart()
.