So I want to do a simple plot where the following x-coordinates should be plotted as points. This is what my data.frame looks like:
gap_pos
1 50646312
2 50647076
3 50647511
4 50647512
5 50647513
6 50647546
Now I have tried to do it as simple as possible:
gap_plot <- ggplot() + geom_point(data=gaps, aes(x=gap_pos))
Then the following error occurred:
Error in exists(name, envir = env, mode = mode) :
argument "env" is missing, with no default
What can I do about this? I am totally stuck.
Edit:
The following two lines do not return an error but still do not plot anything.
gap_plot <- ggplot() + geom_point(data=gaps, aes(x=gap_pos , y = gap_pos))
gap_plot <- ggplot() + geom_point(data=gaps, aes(x=gap_pos , y = 1))
x
andy
coordinates – Nader Hishamy=1
it returns no error but it also does not plot anything. – JadenBlainey
to be the same value ofx
so it will be something like thisgap_plot <- ggplot() + geom_point(data=gaps, aes(x=gap_pos , y = gap_pos))
but I'm not sure if you want this result – Nader Hishamgap_plot
, check this codegap_plot <- ggplot() + geom_point(data=gaps, aes(x=gap_pos , y = gap_pos)) gap_plot
– Nader Hisham