Given an PlasmoMAPI project with a hex map already created, determine which edges intersect each hex. Assumes an elliptical projection with the start- and end-points of an edge becoming the two foci of an ellipse.
assign_map( proj, eccentricity = 0.9, assign_type = 1, report_progress = TRUE, pb_markdown = FALSE )
proj | object of class |
---|---|
eccentricity | eccentricity of ellipses, defined as half the distance between foci divided by the semi-major axis. \(e = sqrt{1 - b^2/a^2}\), where \(e\) is the eccentricity, \(a\) is the length of the semi-major axis, and \(b\) is the length of the semi-minor axis. Eccentricity ranges between 0 (perfect circle) and 1 (straight line between foci). |
assign_type | Assignment method to use (1=standard, 2=new method with function for dealing with duplicate ellipses) |
report_progress | if |
pb_markdown | whether to run progress bars in markdown mode, in which case they are updated once at the end to avoid large amounts of output. |