db_raster: Computes the frequency of x, y intersections and concentrates...

Description Usage Arguments Details Examples

Description

Computes the frequency of x, y intersections and concentrates them based on the resolution

Usage

1
db_raster(data, resolution = 300, output = "ggplot")

Arguments

data

Data frame or Spark table

resolution

Number of squares to return to plot as raster. Defaults to 300.

output

Sets the type of output, defaults to 'data'. Possible values: 'data', 'ggplot'

Details

The function will use the first two columns in the data set. Using the dplyr::select statement prior to calling db_raster will ease adding or removing a plotting step.. The 'data' value for the 'db' argument will return a data frame instead of a plot.

Examples

1
2
3
4
5
6
7
## Not run: 
flights %>%
  filter(arr_delay < 100) %>%
  select(arr_delay, dep_delay) %>%
  db_raster()

## End(Not run)

edgararuiz/dbutilities documentation built on May 15, 2019, 11:02 p.m.