Recently Published
Creating Vectors
In this RPubs post, I dive into my personal exploration of vectors in R. I find myself drawn to the powerful built-in constants like LETTERS and month.abb, which I use to effortlessly create sequences of letters and months. As I experiment, I discover how I can create named vectors and realize how intuitive it feels to assign labels to my data.
I enjoy generating number sequences using the : operator and the seq() function, giving me control over the steps and ranges. Working with different data types in vectors excites me, as I learn how to manipulate and index elements easily. I also explore the rep() function, which opens up new ways for me to repeat and structure my data efficiently. Through these exercises, I feel more confident in my ability to handle data in R, and I’m thrilled to share my journey with colorful, easy-to-follow examples.
App 3D adjusted multiple lineal regression
Mtcars data adjusted multiple lineal regression
Plot
# 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)")