RPubs will retire in June 2027.
Your existing documents will stay accessible through December 31, 2031
and
Connect Cloud
is the recommended home for new publishing.
Read the blog post
# Scatter plot with trend line
ggplot(clinical_data, aes(x = Age, y = Cholesterol, color = Smoking_Status)) +
geom_point() +
geom_smooth(method = "lm", se = FALSE) +
labs(title = "Age vs Cholesterol with Trend Line",
x = "Age (years)",
y = "Cholesterol (mg/dL)")