Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Error while using geom_line in R

$
0
0

@harry wrote:

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?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles