Description Usage Arguments Examples
This function plots a cluster from x,y star positions
1 2 3 | plot_cluster(x, y, rh = 1, complete, plotfile, incomplete_color = "#888888",
complete_color = "#000000", FOVbordercolor = "#FF0000", xi_FOV = 0,
alpha_FOV = 1, beta_FOV = 1)
|
x |
vector with x positions of stars |
y |
vector with y positions of stars |
rh |
scale radius (half mass...) |
complete |
boolean vector that is true for stars that pass completeness (i.e. are included) |
plotfile |
name of the PDF file to plot on |
incomplete_color |
color to plot the excluded stars in (due to completeness) |
complete_color |
color to plot the included stars in |
FOVbordercolor |
color to plot the FOV border |
xi_FOV |
x position of the FOV in units of rh |
alpha_FOV |
x size of the FOV in units of rh |
beta_FOV |
y size of the FOV in units of rh |
1 2 | #plot a cluster with 1000 stars normally distributed in x,y with completeness 0.8
plot_cluster(rnorm(1000),rnorm(1000),1,runif(1000) < 0.8, "cluster.pdf", "#888888", "#000000", "red", 0, 1, 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.