In this tutorial, we will learn about a nice ggplot2 trick/tip that enables colored text on axis tick labels. Thanks to new theme element element_markdown() in ggtext, R package developed by Claus Wilke, we can add colors to axis text labels. To get started, let us load the packages needed. Here we use ggtext version… Continue reading How to add color to axis tick labels: Hint – element_markdown() in ggtext
Tag: ggtext element_markdown()
How to Add Colors to Axis Tick Label in ggplot2
In this tutorial, we will learn how to add colors to axis tick labels in ggplot2. To add colors to axis labels we will use the R package “ggtext: Improved text rendering support for ggplot2” developed by Claus Wilke. Let us get started by loading the packages needed. We will use Palmer Penguin data set… Continue reading How to Add Colors to Axis Tick Label in ggplot2