If the user wants to visualize the occurrence of a variable with a large number of unique elements, the image legend contains all possible elements (which appears very messy with more than ~15 elements) from the said variable. This is true even if an image contains only a fraction of all elements. The subsetting of the 'sce' object allows to display only the elements relevant for an image.
The following images show an example of how subsetting the sce object can help to improve the interpretability of images and the corresponding legend. Here, chemokine clusters are shown. Subsetting of the sce object retains only clusters relevant for the current image.
The vignette could be extended to illustrate such cases and help the user understand why subsetting an sce object can be helpful and sometimes necessary.
If the user wants to visualize the occurrence of a variable with a large number of unique elements, the image legend contains all possible elements (which appears very messy with more than ~15 elements) from the said variable. This is true even if an image contains only a fraction of all elements. The subsetting of the 'sce' object allows to display only the elements relevant for an image.
The following images show an example of how subsetting the
sce
object can help to improve the interpretability of images and the corresponding legend. Here, chemokine clusters are shown. Subsetting of thesce
object retains only clusters relevant for the current image.The vignette could be extended to illustrate such cases and help the user understand why subsetting an
sce
object can be helpful and sometimes necessary.Without subsetting
With subsetting