DensDotPlot: Makes a heatmap of data within a matrix

Description Usage Arguments Value Examples

View source: R/create_typhoon_plot_functions.R

Description

This function takes as input a TyphoonPlot matrix created from GetTyphoonPlotMat and uses the image function to create the heatmap.

Usage

1
2
3
4
DensDotPlot(dot.m, z_min = 0, z_max = NA, low_col = "white",
  med_col = "", high_col = "blue", num_colors = 100, plot_title = "",
  plot_title_line = NA, x_label = "", y_label = "", x_axt = "s",
  y_axt = "s", plot_box = TRUE)

Arguments

dot.m

Matrix, the 2-dimensional matrix to plot

z_min

Numeric, the minimum intensity of the plot (default: 0)

z_max

Numeric, the maximum intensity of the plot. If not specified, by default the maximum will be set to the value at the 95th percentile (default: NA)

low_col

Character, the minimum color (default: "white")

med_col

Character, the middle color (optional, default: "")

high_col

Character, the maximum color (default: "blue")

num_colors

Numeric, the number of colors between low_col and high_col

plot_title, x_label, y_label

Character (optional, default: "" for all)

plot_title_line

Numeric, (optional, default: NA)

x_axt, y_axt

Character, "s" (default) or "n"

plot_box

Boolean, (default: TRUE)

Value

A heatmap plot utilizing the image function

Examples

1
## Not run: DensDotPlot(dot.m = typhoon.m, z_max = 50)

jbelsky/TyphoonPlot documentation built on May 18, 2019, 5:59 p.m.