Draw ggplot2 Plot with Factor on X-Axis in R (Example) | geom_line() Function of the ggplot2 Package

preview_player
Показать описание
R code of this video:

value = c(1, 4, 2, 5, 3))
data # Print example data

library("ggplot2")

ggplot(data, # Line plot with factor on x-axis
aes(x = group,
y = value,
group = 1)) +
geom_line()

Follow me on Social Media:

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

What exactly does the 'group' argument do?

gd