Skip to contents

All data values in this data set are algorithmically generated. With that exception, though, the data set closely resembles the confidential data the package was developed for. It contains the data to generate 68 reports with varying numbers of figures each.

Usage

df_example

Format

A data frame with 164,794 rows and 24 variables:

report_nr

Integer, report number used for filtering and joining

figure_nr

Integer, unique identifier for each figure

report_type_id

Character, one of c("STG", "MED", "M_ED", "FGR", "SZMA"). This ID is used for filtering and conditional logic.

x

Character, x axis values. Will only be used for ordering if x_label is filled.

x_label

Character, x axis values to be displayed

y

Character, y axis value of the figure

y_axis_label

Character, y axis label of the figure

fill

Integer, values used for ordering of the fill

fill_label

Character, values used for the fill labels

facet

Character, values to use for facetting the figure

group

Integer, values to use for the grouping

group_label

Character, values to use as group labels

source_caption

Character, the source of the figure's data, displayed at the bottom-right of each figure. Used as caption argument in the call to ggplot2::labs.

question_txt

Character, the question posed to the survey's respondents and displayed as figure title

figure_type_id

Integer, ID determining the type of figure to plot. Currently one of four: 1 - stacked bar chart; 2 - vertical stacked bar chart scaled to 100%; 3 - horizontal stacked bar chart scaled to 100%, 4 - line chart.

figure_caption

Character, the figure caption displayed above each figure.

heading

Character, the level 1 heading appearing above this figure, only displayed when the corresponding boolean is true.

subheading

Character, the level 2 heading appearing above this figure, only displayed when the corresponding boolean is true.

is_heading

Boolean, determines whether the level 1 heading is printed above the figure.

is_subheading

Boolean, determines whether the level 2 heading is printed above the figure.

report_author

Character, the report author, appearing on the title page, on the header of each page.

report_title

Character, the report title, appearing on the title page and in the header of each page.

file_name

Character, the file name for this report

figure_height

Numeric, height of the figure in inches

Details

Table: Data summary

Namedf_example
Number of rows164794
Number of columns24
_______________________
Column type frequency:
character16
logical2
numeric6
________________________
Group variablesNone

Variable type: character

skim_variablen_missingcomplete_rateminmaxemptyn_uniquewhitespace
report_type_id01.0034050
x01.0012001567680
x_label1567480.059160200
y01.001570185910
y_axis_label1616440.023045020
fill_label9520.9915801080
facet31500.989168014150
group_label1638420.012425020
source_caption01.004676080
question_txt99960.94192130530
figure_caption01.002412208120
heading01.002057050
subheading326470.801546090
report_author01.00101780680
report_title01.0026270680
file_name01.0029300680

Variable type: logical

skim_variablen_missingcomplete_ratemeancount
is_heading010.05FAL: 157293, TRU: 7501
is_subheading010.08FAL: 151770, TRU: 13024

Variable type: numeric

skim_variablen_missingcomplete_ratemeansdp0p25p50p75p100hist
report_nr01.0035.7822.231.016.0036.0059.0068.00▇▅▇▃▇
figure_nr01.0087.63105.121.029.0056.0093.00550.00▇▁▁▁▁
fill9520.993.022.170.02.003.004.0022.00▇▂▁▁▁
group70940.9681.9815.498.081.0082.0088.0099.00▁▁▁▁▇
figure_type_id01.002.950.291.03.003.003.004.00▁▁▁▇▁
figure_height01.006.592.121.34.927.288.549.45▁▅▃▆▇