Plotting longitudinal data with geom_point() + geom_line() | Professional dataviz with ggplot2 | R

preview_player
Показать описание
5 minutes is enough to create a professional-looking and ready for publication chart. In this video i will show how to visualize longitudinal data using geom_point() and geom_line() functions from ggplot2 package.

The data used in this video is the 'Orange' dataset from 'datasets' package.

Рекомендации по теме
Комментарии
Автор

It's REALLY the best video about graphics on R. i loveeee it!!! thank you sooo much !!

IrinaLizunova-ql
Автор

Awesome video! Please do more step-by-step R data visualization tutorials!

SmoothCode
Автор

thank you for this; I am trying to visulaise the below but I am getting straight lines connected in the same year. any idea how to fix it?


world_bank_pop %>%
# tibble() %>%
# janitor::clean_names() %>%
pivot_longer(cols = 3:20,
names_to = "date_data",
values_to= "num_values") %>%
tibble() %>%
head(100) %>%
ggplot(aes(date_data, num_values,
groups = country)) +
# geom_line()+
geom_point()

ahmedJaber
Автор

why when i use the geom_line its always error, its says "Each group consists of only one observation."

jimmypratama
Автор

Hello,
How can i get the data you are using on this clip. Great Work.

annestephen
Автор

Why mine said could not find function ggplot

asrimaharani