Takes in a vector or radii and calculates the average intensity of a target marker using average_intensity function. It plots the intensity level as a line graph.

plot_average_intensity(spe_object, reference_marker, target_marker, radii)

Arguments

spe_object

SpatialExperiment object in the form of the output of format_image_to_spe.

reference_marker

String specifying the reference marker.

target_marker

String specifying the marker to calculate its average intensity.

radii

Numeric Vector specifying the search radius around reference cells.

Value

A plot is returned

Examples

plot_average_intensity(SPIAT::simulated_image, reference_marker="Immune_marker3", 
target_marker="Immune_marker2", c(30, 35, 40, 45, 50, 75, 100))