ABSTRACT

The histogram is the traditional primary display of the values of a continuous variable. Organize the data into adjacent bins and then plot the frequency of each bin as the height of a bar with all bars adjacent to each other to emphasize the underlying continuity. The lessR function for plotting a histogram is Histogram(). One option is the density plot, which smooths the discrete bins of the histogram into a smooth curve. Alternatives to the histogram include the box plot, violin plot, and one-dimensional scatterplot. The lessR function Plot() creates any of these alternatives, or all three superimposed on each other by default. Plot() also produces run charts and time series charts to analyze time-oriented data. Create the data visualization for a single variable on a single plot. Or, with one or two grouping variables, plot different levels of the grouping variable on the same panel or multiple panels called a Trellis plot.