Plotting longitudinal data with geom_point() + geom_line() | Professional dataviz with ggplot2 | R
HTML-код
- Опубликовано: 22 авг 2024
- 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.
The code and files can be found on my github repository: github.com/ser...
Forest sciences and biometrics in R (portuguese): mensura-r.netl...
Video music: Lazarus Moment - In A Cabin By The Lake ( • Lazarus Moment - In A ... )
It's REALLY the best video about graphics on R. i loveeee it!!! thank you sooo much !!
Awesome video! Please do more step-by-step R data visualization tutorials!
Show de bola
Fantastical tutorial, best one!
Thanks
why when i use the geom_line its always error, its says "Each group consists of only one observation."
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()
Why mine said could not find function ggplot
Hello,
How can i get the data you are using on this clip. Great Work.
The data is in the base package `datasets`. Just load the package and type `Orange` to see it, as shown in the video.