Get angle from origin to vector of x,y coordinates
Arguments
- x
numeric vector or two-column matrix with columns representing x,y coordinates when y is
NULL.- y
numeric vector or
NULL.- directed
logical indicating whether to return angles around the full circle, or only half circle. For example, in degrees
c(1,1)indicates 45 degrees,c(-1,-1)indicates -135 degrees. Whendirected=FALSEthenc(-1,-1)indicates 45 degrees.- deg
logical indicating whether to return degrees, or when
deg=FALSEit returns radians.- origin.x, origin.y
numeric input defining the coordinates to use as the origin. When non-zero it implies the first point of each segment.
- ...
additional arguments are ignored.
Details
This function gets the angle from origin to x,y coordinates, allowing for vectorized input and output.
See also
Other jam utility functions:
ashape(),
avg_angles(),
avg_colors_by_list(),
bulk_cnet_adjustments(),
call_fn_ellipsis_deprecated(),
cell_fun_bivariate(),
collapse_mem_clusters(),
colorRamp2D(),
deconcat_df2(),
display_colorRamp2D(),
enrichList2geneHitList(),
filter_mem_genes(),
filter_mem_sets(),
find_colname(),
find_enrich_colnames(),
get_hull_data(),
get_igraph_layout(),
gsubs_remove(),
handle_igraph_param_list(),
isColorBlank(),
make_legend_bivariate(),
make_point_hull(),
mem_find_overlap(),
order_colors(),
rank_mem_clusters(),
rotate_coordinates(),
subgraph_jam(),
subset_mem(),
summarize_node_spacing()