The functions area
, bar
, line
, and scatter
are convenience wrappers
around a generic xy_plot
function (not currently exported). Each function takes additional keyword
arguments such mark
which can take an array of mark types. As such, to make a combination of a bar plot and line plot,
you can either specify line
, bar
, etc. as the base chart type, then set the appropriate mark option to get the desired output.
Note that by default, area
defaults to a stacked bar chart (i.e. stack = true
). Be careful when modifying the marks for area
, as the stacked series’ would be incorrect as a multiple line plot (e.g. line plots conventionally aren’t stacked).