How can I plot a 1-D plot in R? -


I have a vector of the whole number, such as: 2,8,11,19 .

I want to plot a line of length 20 Then find a point for each value that is present in the list (at some fixed height), then I get something like this:

- + ----- + - + ------- + -

Brandon Bertelson is really close ...

  x  

but I have written the most to write that you can also look for methods on stripchart () and rug () in base graphics, see 1-D data.


Comments