[R] Random data

Sarah Goslee sarah.goslee at gmail.com
Wed Nov 25 16:04:58 CET 2009


That's not a 45-degree angle: the x and y scales are quite different. But
you can use corgen from the ecodist package to create correlated x and
y variables, and then adjust the scale as needed.

Sarah

On Wed, Nov 25, 2009 at 9:42 AM, mentor_ <mentor_ at gmx.net> wrote:
>
> Hi,
>
> how can I produce random data which lies around a straight line with angle
> 45 degree.
> Similar to this image: http://zoonek2.free.fr/UNIX/48_R/g134.png
>
> Cheers

-- 
Sarah Goslee
http://www.functionaldiversity.org




More information about the R-help mailing list