Learn R Programming

AIUQ (version 0.5.3)

plot_intensity: Plot 2D intensity

Description

Function to plot 2D intensity profile for a certain frame, default is to plot the first frame. Input can be a matrix (2D) or an array (3D).

Usage

plot_intensity(
  intensity,
  intensity_str = "T_SS_mat",
  frame = 1,
  sz = NA,
  title = NA,
  color = FALSE
)

Value

2D plot in gray scale (or with color) of selected frame.

Arguments

intensity

intensity profile

intensity_str

structure of the intensity profile, options from ('SST_array','S_ST_mat','T_SS_mat', 'SS_T_mat'). See 'Details'.

frame

frame index

sz

frame size of simulated image with default c(200,200).

title

main title of the plot. If NA, title is "intensity profile for frame n" with n being the frame index in frame.

color

a logical evaluating to TRUE or FALSE indicating whether a colorful plot is generated

Author

tools:::Rd_package_author("AIUQ")

Details

By default intensity_str is set to 'T_SS_mat', a time by space\(\times\)space matrix, which is the structure of intensity profile obtained from simulation class. For intensity_str='SST_array' , input intensity profile should be a space by space by time array, which is the structure from loading a tif file. For intensity_str='S_ST_mat', input intensity profile should be a space by space\(\times\)time matrix. For intensity_str='SS_T_mat', input intensity profile should be a space\(\times\)space by time matrix.

Examples

Run this code
library(AIUQ)
sim_bm = simulation(sz=100,len_t=100,sigma_bm=0.5)
show(sim_bm)
plot_intensity(sim_bm@intensity, sz=sim_bm@sz)

Run the code above in your browser using DataLab