Get access to all lessons in this course.
-
Advanced Data Wrangling and Analysis
- Overview
- Importing Data
- Tidy Data
- Reshaping Data
- Dealing with Missing Data
- Changing Variable Types
- Advanced Variable Creation
- Advanced Summarizing
- Binding Data Frames
- Functions
- Merging Data
- Renaming Variables
- Quick Interlude to Reorganize our Code
- Exporting Data
-
Advanced Data Visualization
- Data Visualization Best Practices
- Tidy Data
- Pipe Data Into ggplot
- Reorder Plots to Highlight Findings
- Line Charts
- Use Color to Highlight Findings
- Declutter
- Use the scales Package for Nicely Formatted Values
- Use Direct Labeling
- Use Axis Text Wisely
- Use Titles to Highlight Findings
- Use Color in Titles to Highlight Findings
- Use Annotations to Explain
- Tweak Spacing
- Customize Your Theme
- Customize Your Fonts
- Try New Plot Types
-
Advanced RMarkdown
- Advanced Markdown Text Formatting
- Tables
- Advanced YAML
- Inline R Code
- Making Your Reports Shine: Word Edition
- Making Your Reports Shine: HTML Edition
- Making Your Reports Shine: PDF Edition
- Presentations
- Dashboards
- Other Formats
-
Wrapping Up
- You Did It!
Going Deeper with R
Use Axis Text Wisely
This lesson is locked
This lesson is called Use Axis Text Wisely, part of the Going Deeper with R course. This lesson is called Use Axis Text Wisely, part of the Going Deeper with R course.
Transcript
Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.
Your Turn
Make your y axis labels show up as nicely formatted percents using the percent_format()
function.
Learn More
Dana Siedel gave a nice talk at rstudio::conf 2020 about the scales package that is well worth a 20-minute watch!
You need to be signed-in to comment on this post. Login.
Catherine Roller White
May 10, 2021
Hi there. How can I change the font of my data labels to match the rest of the font? I'm using a font called "Sylfaen." It's showing up for my axis labels but I'm not sure where to specify that font for data labels. Thank you!
David Keyes
May 11, 2021
To adjust the font on data labels, you need to add the font name in the
geom_text()
function as follows:geom_text(family = "Sylfaen")
I also made a quick video to show how you can set the default font for all instances of
geom_text()
.Catherine Roller White
May 11, 2021
Fantastic -- thank you so much!