Skip to contents

Returns the $data slot — the tidy data frame each hv_data subclass carries for ggplot2 consumption. Lets callers use the standard base::as.data.frame() / base::data.frame() coercion in tidyverse pipelines instead of reaching for the $data accessor.

Usage

# S3 method for class 'hv_data'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)

Arguments

x

An hv_data object.

row.names

Ignored; present for base-method-signature consistency.

optional

Ignored; present for base-method-signature consistency.

...

Ignored.

Value

A data.framex$data.