View source: R/data_transformation.R
| yt_quick_plot | R Documentation |
Create a quick visualization of the data (if ggplot2 is available)
yt_quick_plot(api_response, x_col = NULL, y_col = NULL, chart_type = "auto")
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) |
ggplot object or base R plot if ggplot2 not available
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.