Unexpected symbol?

Hi, I am trying to put this into R studio, but it keeps telling me I have an "unexpected symbol'.

ggplot(Mydata, aes(x=JAF, y=Read Depth, linetype=Power)) + geom_line()

Any ideas? Thanks.

If one of your column names is Read Depth, the space in the name is causing the problem. It might work to place that name in back ticks, `Read Depth`. I advise that you change that name to not have a space, Read_Depth, to save trouble.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.