calculate.alpha.beta.coordinates: Calculate alpha & beta coordinates to draw the polygons

Description Usage Arguments Value Examples

View source: R/calculateCoordinates.R

Description

(beta) ^ + + (gamma) < + + + + v (alpha)

Usage

1
2
calculate.alpha.beta.coordinates(freq_clones, xaxis_length, yaxis_length,
  xy_start = c(0, 0), debug = FALSE)

Arguments

freq_clones

A vector with the frequency of the clones freq_clones

xaxis_length

Length of the x-axis xaxis_length

yaxis_length

Length of the y-axis yaxis_length

xy_start

Coordinates for the starting point of the plot xy_start

Value

dataframe Returns a dataframe with x and y coordinates for alpha & beta

Examples

1
2
3
4
5
alpha_beta <- calculate.alpha.beta.coordinates(df_freq[df_freq$clone==1, ],
                                              xaxis_length=4,
                                              yaxis_length=yaxis_length_per_clone[1],
                                              xy_start=c(0,0),
                                              debug=TRUE)

sp00nman/evoplot documentation built on May 6, 2019, 6:59 p.m.