ggpixelgrid: Plot Pixel Grids

Description Usage Arguments

View source: R/utils.R

Description

Helper function to plot images from "image tensors" data.frames. Designed to work with [mestrado::image_tensors_to_tbl].

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
ggpixelgrid(
  image_tensor_tbl,
  nrow = NULL,
  ncol = NULL,
  x = x,
  y = y,
  channels = dplyr::starts_with("c"),
  label = i,
  grid_tickness = 0,
  grid_colour = "grey",
  ...
)

Arguments

image_tensor_tbl

image tensor tibble. Usually a output from [mestrado::image_tensors_to_tbl].

nrow

facet_wrap's nrow.

ncol

facet_wrap's ncol.

x

bare name. Column of coordinate X.

y

bare name. Column of coordinate Y.

channels

<tidy-select> columns of channels. It must select 3 or less columns (for R, G and B). If less than 3, channels will be recycled.

label

expr. Column or expression to put as title for each image.

grid_tickness

numeric. Tickness of the pixel grid.

grid_colour

character. Colour of the pixel grid.

...

arguments passed to facet_wrap.


Athospd/mestrado documentation built on Jan. 2, 2021, 3:59 a.m.