Plot points on a sphere in R

后端 未结 2 836
星月不相逢
星月不相逢 2021-01-02 01:13

Could you help me to make a plot similar to this in R?

I would like to have it interactive such that I could rotate the sphere. I guess I should use r

2条回答
  •  孤独总比滥情好
    2021-01-02 01:52

    Wandering in late, I might suggest looking at the packages sphereplot and, if you're feeling really brave, gensphere for highly configurable general placement of points in 3-space.

    sphereplot includes simple functions such as (quoting from the man pages)

    pointsphere Random sphere pointing
    Description Randomly generates data
    points within a sphere that are uniformly distributed.
    Usage
    pointsphere(N = 100, longlim = c(0, 360), latlim = c(-90, 90), rlim = c(0, 1))
    Arguments N Number of random points.
    longlim Limits of longitude in degrees.
    latlim Limits of latitude in degrees.
    rlim Limits of radius.

提交回复
热议问题