+ Reply to Thread
Results 1 to 4 of 4

Thread: how to (x,y) values from xy plane in R

  1. #1
    Points: 1,078, Level: 17
    Level completed: 78%, Points required for next Level: 22

    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how to (x,y) values from xy plane in R




    Hello,

    I would like to generate random points on the x-y plane,
    for example let's set -10 < X < 10, -10 < Y < 10, and n = 400

    how can I do that?

  2. #2
    Devorador de queso
    Points: 97,539, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Awards:
    Posting AwardCommunity AwardDiscussion EnderFrequent PosterActivity Award
    Dason's Avatar
    Location
    Tampa, FL
    Posts
    12,987
    Thanks
    309
    Thanked 2,639 Times in 2,254 Posts

    Re: how to (x,y) values from xy plane in R

    Do you want any correlation?
    I don't have emotions and sometimes that makes me very sad.

  3. #3
    Points: 1,078, Level: 17
    Level completed: 78%, Points required for next Level: 22

    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: how to (x,y) values from xy plane in R

    no just random numbers where I can divide them into 4 quadrants

  4. #4
    Human
    Points: 12,924, Level: 74
    Level completed: 19%, Points required for next Level: 326
    Awards:
    Master Tagger
    GretaGarbo's Avatar
    Posts
    1,397
    Thanks
    460
    Thanked 471 Times in 411 Posts

    Re: how to (x,y) values from xy plane in R


    Code: 
    x <- runif(n=400, min = -10, max = +10)
    y <- runif(n=400, min = -10, max = +10)
    
    plot(x,y)

+ Reply to Thread

           




Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts






Advertise on Talk Stats