Open henriquesposito opened 6 months ago
For the time being, shape is not mapped according to variable, it is just set as an aesthetic in autographr()
with the '.infer_nshape()' helper function. For this reason, guides also do not work for shape at the moment (see #52).
Because we rely on both ggplot2 and ggraph packages in our functions substituting color by fill returns unexpected results (e.g. aesthetics mapped correctly but colors are the same). However, we now consistently map node colors and sizes and this improves the function consistency.
Currently we rely on the color aesthetics to color the inside of nodes. However, once node colors and shapes are declared, color becomes the outside color.
For example,
autographr(ison_lawfirm, node_color = "school")
andautographr(ison_lawfirm, node_color = "school", node_shape = "practice")
.This happens because of inconsistencies in using both ggplot2 and ggraph packages in our functions. By refactoring and making code more consistent, will allow that we use color for the outside and fill for inside colors throughout. That is, we will have the "node_color" and "node_fill" arguments in the autographr/s/d functions.