plotting_all_coordinates_2d.Rd
Wrapper around ggplot2 to plot xyz coordinates. Plots xy, yz, and xz coordinates and merges the different plots together. It returns a list with 3 elements, each of which is a ggplot object. These can be merged with other functions, such as ggpubr
plotting_all_coordinates_2d(cells_df, var_to_colour = NULL, cols = NULL)
cells_df | dataframe with xyz coordinates ("xPos", "yPos", "zPos") of the brain area of interest. Each row corresponds to a different cell. |
---|---|
var_to_colour | variable to use for colouring xyz coordinates. Default to NULL |
cols | colours to use. Must have length equal to the levels of var_to_colour. Default to NULL |