ps_raster_to_df: Convert raster to data.frame

View source: R/basemap.R

ps_raster_to_dfR Documentation

Convert raster to data.frame

Description

Convert raster to data.frame

Usage

ps_raster_to_df(x)

Arguments

x

A raster object.

Value

A data.frame object which can be plotted using: ggplot2::geom_point(data = x, aes(x = x, y = y, col = rgb(layer.1/255, layer.2/255, layer.3/255))).


poissonconsulting/poisspatial documentation built on Nov. 9, 2023, 10:09 a.m.