I am currently working on one data set while working I am trying to plot using the ggplot2 package in R using geom_line as a layer above the plot.
ggplot(aes(x = gender, y = age), + data = subset(pf, !is.na(gender)))+geom_line(aes(color=gender),stat = 'summary',fun.y=median)
But I am getting only the empty plot by showing the comment on the console .
geom_path: Each group consist of only one observation. Do you need to adjust the group aesthetic?