plot_cluster: plot_cluster function

Description Usage Arguments Examples

Description

This function plots a cluster from x,y star positions

Usage

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)

Arguments

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

Examples

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)

m-a-r-i-o/aRtistic documentation built on May 7, 2019, 9:37 a.m.