尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗{qnp}The goal of {qnp} (“quarto-notes plots”) is to provide helpers for
including plots in Quarto notes. It currently provides one function,
interactive_plot(), which makes a {ggplot2} plot interactive in HTML
output and leaves it unchanged in other output formats.
You can install the development version of {qnp} from
GitHub with:
# install.packages("pak")
pak::pak("Morrison-Lab/qnp")
interactive_plot() takes a ggplot and a text alternative (alt) for
the plot:
library(ggplot2)
library(qnp)
p <- ggplot(mtcars, aes(wt, mpg)) +
geom_point()
interactive_plot(
plot = p,
alt = "Scatterplot of fuel economy versus car weight",
is_html = FALSE
)
In HTML output (the default, via is_html = knitr::is_html_output()),
the result is an interactive plotly widget
wrapped in a <div> with role = "img" and aria-label = alt, so that
screen readers announce it as a single image. In other output formats,
the original ggplot is returned unchanged. This README is rendered to
GitHub-flavored Markdown, which knitr counts as an HTML output format,
so the example sets is_html = FALSE explicitly to show the static
plot.
See USAGE.md for more details.
This package uses altdoc with Quarto to build its documentation site. To build and preview the documentation locally:
# Load the package
pkgload::load_all()
# Render the documentation
altdoc::render_docs()
# Preview the site
altdoc::preview_docs()
The documentation is automatically built and deployed to GitHub Pages via GitHub Actions when changes are pushed to the main branch.
{qnp} is an R package, and the notes sites that use it are Quarto
websites, so the two live in separate repositories. The decision and its
reasons are in the lab’s repository-template
guidance.
The notes on choosing colors are in the visualization
notes.
Please note that the {qnp} project is released with a Contributor
Code of
Conduct.
By contributing to this project, you agree to abide by its terms.