R Rug Jitter
The colour the ticks are plotted in.
R rug jitter. A rug plot is a compact visualisation designed to supplement a 2d display with the two 1d marginal distributions. Alpha 1 2 position jitter move the rug tassels to outside the plot remember to set clip off. So if the area of the density plot to the left is about twice the area to the right then that could reasonably be taken as representing the distribution. In base r it is done manually creating a function that adds dot one by one computing a random x position for all of them.
Rug plots display individual cases so are best used with smaller datasets. Numeric vector to which jitter should be added. Boxplot with jitter in base r. Factor d 5 where d is about the smallest difference between x values.
Some devices will round the default width up to 1. The length of the ticks making up the rug. On which side of the plot box the rug will be plotted. If positive used as amount see below otherwise if 0 the default is factor z 50.
Boxplot hides the distribution behind each group. Positive lengths give inwards ticks. This post show how to tackle this issue in base r adding individual observation using dots with jittering. Normally 1 bottom or 3 top.