yt_quick_plot: Create a quick visualization of the data (if ggplot2 is...

View source: R/data_transformation.R

yt_quick_plotR Documentation

Create a quick visualization of the data (if ggplot2 is available)

Description

Create a quick visualization of the data (if ggplot2 is available)

Usage

yt_quick_plot(api_response, x_col = NULL, y_col = NULL, chart_type = "auto")

Arguments

api_response

API response from YouTube Analytics

x_col

Column name for x-axis (auto-detected if NULL)

y_col

Column name for y-axis (auto-detected if NULL)

chart_type

Type of chart: "line", "bar", "point" (default: auto)

Value

ggplot object or base R plot if ggplot2 not available

Examples

## Not run: 
# Daily views over time
daily_report <- get_daily_performance("last_30_days")
yt_quick_plot(daily_report)

# Top videos by views
top_videos <- get_top_videos("last_7_days")
yt_quick_plot(top_videos, chart_type = "bar")

## End(Not run)

tubern documentation built on April 12, 2026, 5:07 p.m.