I have a vector of integers, e.g.: 2,8,11,19.
I would like to plot a line of length e.g. 20 then plot a dot for each value that exist in the list (at some constant height), so I get something like this:
-+-----+--+-------+-
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Brandon Bertelsen is really close…
But I wrote this mostly to mention that you might also in base graphics look at stripchart() and rug() for ways to look at 1-d data.