R3

R3

R3

Published on September 14, 2025By EduResHub Team

Highlight Styles — Side-by-Side Gallery

Author

Prof. CKDash

Published

September 14, 2025

Below is the same R code rendered in each style. Colors are scoped per section, so your site CSS cannot override them.

Pygments

library(tidyverse)

mtcars |>
  mutate(gear = factor(gear)) |>
  ggplot(aes(gear, mpg, fill = gear)) +
  geom_boxplot() +
  labs(title = "MPG by Gear", x = "Gears", y = "MPG")

Tango

library(tidyverse)
mtcars |>
  mutate(gear = factor(gear)) |>
  ggplot(aes(gear, mpg, fill = gear)) +
  geom_boxplot() +
  labs(title = "MPG by Gear", x = "Gears", y = "MPG")

Espresso

library(tidyverse)
mtcars |>
  mutate(gear = factor(gear)) |>
  ggplot(aes(gear, mpg, fill = gear)) +
  geom_boxplot() +
  labs(title = "MPG by Gear", x = "Gears", y = "MPG")

Zenburn

library(tidyverse)
mtcars |>
  mutate(gear = factor(gear)) |>
  ggplot(aes(gear, mpg, fill = gear)) +
  geom_boxplot() +
  labs(title = "MPG by Gear", x = "Gears", y = "MPG")

Kate

library(tidyverse)
mtcars |>
  mutate(gear = factor(gear)) |>
  ggplot(aes(gear, mpg, fill = gear)) +
  geom_boxplot() +
  labs(title = "MPG by Gear", x = "Gears", y = "MPG")

Monochrome

library(tidyverse)
mtcars |>
  mutate(gear = factor(gear)) |>
  ggplot(aes(gear, mpg, fill = gear)) +
  geom_boxplot() +
  labs(title = "MPG by Gear", x = "Gears", y = "MPG")

Breezedark

library(tidyverse)
mtcars |>
  mutate(gear = factor(gear)) |>
  ggplot(aes(gear, mpg, fill = gear)) +
  geom_boxplot() +
  labs(title = "MPG by Gear", x = "Gears", y = "MPG")

Haddock

library(tidyverse)
mtcars |>
  mutate(gear = factor(gear)) |>
  ggplot(aes(gear, mpg, fill = gear)) +
  geom_boxplot() +
  labs(title = "MPG by Gear", x = "Gears", y = "MPG")