Create a dot plot for percentilesSource:
Creates a percentile dot plot in each row. Can be used as an alternative for a 0 to 100% bar plot. Allows for scaling values as well and accepts a vector of colors for the range of values.
gt_plt_percentile( gt_object, column, palette = c("#007ad6", "#f0f0f0", "#f72e2e"), width = 25, scale = 1 )
An existing gt table
The column to transform to the percentile dot plot. Accepts
tidyeval. All values must be end up being between 0 and 100.
A vector of strings of length 3. Defaults to
c('blue', 'lightgrey', 'red')as hex so
c("#007ad6", "#f0f0f0", "#f72e2e")
A numeric, indicating the width of the plot in
mm, defaults to 25
A number to multiply/scale the values in the column by. Defaults to 1, but can also be 100 if you have decimals.