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_ <ment...@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

______________________________________________
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