Skip to contents

Import Data

Read in data from SurveyMonkey.

createCodebook()
Create a codebook for SurveyMonkey data
getHeaders()
Convert two row headers from SurveyMonkey data into long from data
readRenameData()
Import SurveyMonkey data and create new variable names

Data Manipulation

Data cleanup and manipulation.

dataSumm()
Creates a data frame that is a summary table of counts and percentages
dataVizCleaning()
Creates a data frame that is a summary table of counts and percentages
openendedCleanup()
Clean Up and Format Open-ended Text
recodeCat()
Recode Numeric Variables to Factor Variables

Data Visualization

Charts

Create charts with BRE Branding.

arrowChart()
Arrow Chart for Blackstone Research and Evaluation
arrowChartGroup()
Arrow Chart by Group for Blackstone Research and Evaluation
divBarChart()
Diverging Bar Chart for Blackstone Research and Evaluation
horzBarChart()
Horizontal Bar Chart for Blackstone Research and Evaluation
stackedBarChart()
Stacked Bar Chart for Blackstone Research and Evaluation

Tables

Create tables with BRE Branding.

groupedTable()
Grouped Summary Table for Blackstone Research and Evaluation
likertTable()
Summary Table for Likert Items for Blackstone Research and Evaluation
openendedFlextable()
Create a Formatted Flextable for Open-ended Text
tblSumm()
Creates a summary table of counts and percentages from a data frame pre-processed with the dataSumm() and returns a flextable object.
testFlextable()
Create Flextable in Blackstone Research and Evaluation Branding

ggplot2 Themes

Theme ggplot2 objects with BRE Branding.

addBarChartPrePostTheme()
Helper function to Add Theme Options to a Pre-Post Bar Chart
addBarChartTheme()
Helper function to Add Theme Options to a Bar Chart
addPlotTag()
Helper function to Add a Plot Tag

Color Palette Functions

Create BRE color Palettes.

blackstoneColors
blackstone Colors as a Named Vector
divFillColors()
Helper to create a diverging color palette using Blue-Red 3 that is reversed.
labelColorMaker()
Helper function that creates text label colors.
qualColors()
blackstone Qualitative Colors as a Vector
qualFillColors()
Helper function to create qualitative colors from the Okabe-Ito palette.
seqFillColors()
Helper to create a sequential color scale using Blues 3 that is reversed.

Example files

List or get the path to example files in the package.

blackstoneExample()
Get path to blackstone example data