ggplot2 font times new roman
library(ggplot2)
# Create sample data
data <- data.frame(
Category = c("A", "B", "C"),
Value = c(10, 20, 15)
)
# Plot with ggplot2 using Times New Roman font
ggplot(data, aes(x = Category, y = Value)) +
geom_bar(stat = "identity", fill = "skyblue", color = "black") +
theme_minimal() +
theme(text = element_text(family = "times new roman"))