R4

R4

R$

Published on September 14, 2025By EduResHub Team

Quarto Blog Demo — Locked Colors + Copy Button

Author

Prof. CKDash

Published

September 14, 2025

Copy button + color‑safe code blocks

This HTML uses a syntax shield so your EduResHub CSS can’t override token colors.

# A quick demo plot
plot(mtcars$wt, mtcars$mpg,
     pch = 19, col = "steelblue",
     xlab = "Car weight (1000 lbs)", ylab = "Miles per gallon",
     main = "mpg vs wt (mtcars)")
abline(lm(mpg ~ wt, data = mtcars), lwd = 2)

A tidyverse example

library(tidyverse)

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