Or perhaps just:

plot(xrange, yrange, type ="s")

--
On Dec 8, 2009, at 6:00 PM, Peter Alspach wrote:

Tena koe Oliver

?seq

should help if I understand your question correctly ....

Peter Alspach

-----Original Message-----
From: r-help-boun...@r-project.org
[mailto:r-help-boun...@r-project.org] On Behalf Of Wells Oliver
Sent: Wednesday, 9 December 2009 11:19 a.m.
To: r-help@r-project.org
Subject: [R] Formatting the length one vector to match another?

I have xrange which is a range of values from 1 to a max of 162.

I have a yrange of values which really could be any values,
but there's a min and a max. I'd like to create N number of
steps between the min and the max so the length matches the
xrange, so that I can plot them together.

Any tips? Thank you!

--
Wells Oliver
we...@submute.net


David Winsemius, MD
Heritage Laboratories
West Hartford, CT

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to