View source: R/framework_view.R
| view | R Documentation |
Opens an interactive, browser-based viewer for R objects. This is the primary function for viewing data frames, plots, lists, and other R objects with enhanced formatting.
view(x, title = NULL, max_rows = 5000)
x |
The data to view (data.frame, plot, list, function, or other R object) |
title |
Optional title for the view. If NULL, uses the object name. |
max_rows |
Maximum number of rows to display for data frames (default: 5000). |
Invisibly returns NULL. Opens a browser window.
if (FALSE) {
# View a data frame
view(mtcars)
# View with a title
view(iris, title = "Iris Dataset")
# View a ggplot
library(ggplot2)
p <- ggplot(mtcars, aes(mpg, hp)) + geom_point()
view(p)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.