grid_plot: Plot a grid from a properly formatted data frame.

Description Usage Arguments Value Examples

View source: R/demonanalysis.R

Description

Plot a grid from a properly formatted data frame.

Usage

1
2
grid_plot(image_df, palette = NA, discrete = FALSE,
  add_legend = FALSE, legend_title = "")

Arguments

image_df

data frame formatted by image_df_from_grid_file

palette

colour palette (default NA)

discrete

whether to use a discrete or continuous colour scale (default FALSE)

add_legend

whether to add a legend (default FALSE)

legend_title

text for legend title (default none)

Value

a plot object

Examples

1
2
3
image_df <- image_df_from_grid_file(system.file("extdata", 
"output_passengersgrid.dat", package = "demonanalysis", mustWork = TRUE))
grid_plot(image_df)

robjohnnoble/demonanalysis documentation built on June 30, 2020, 12:47 a.m.