我正在使用flexdashboard带有 Rmarkdown 的包,并且想要修改标题的尺寸、边框的位置、颜色等,从而生成由 Rstudio 创建的网页。有许多与 Flex 仪表板和 Rmarkdown 相关的 CSS 文件。有人可以告诉我为此目的应修改哪些 CSS 文件,以及这些文件位于 R 或 Rstudio 目录中的位置吗?
我正在创建一个带有多个注释的绘图,因此我编写了一个函数来简化该过程。下面的 ggplot() 显示了annotate()一个“Szarkowski”的费力命令。由于我要添加多个段和文本,因此我创建了该af函数(也如下所示)。但是,在使用该函数时,我抛出“无法将 ggproto 对象添加在一起”错误。
如何正确创建我的注释函数?
df<-structure(list(
Department = structure(c(8L, 8L, 8L, 8L, 8L, 8L, 8L, 8L, 8L, 8L, 8L), .Label = c("Architecture & Design", "Architecture & Design - Image Archive",
"Drawings & Prints", "Film", "Fluxus Collection", "Media and Performance", "Painting & Sculpture", "Photography"), class = "factor"),
Year = c(1970, 1967, 1960, 1960, 1960, 1960, 1970, 1970, 1970, 1970, 1970),
Gender2 = c("Female", "Female", "Female", "Female", "Female", "Female", "Female", "Female", "Female", "Female", "Female"),
Nationality2 = …Run Code Online (Sandbox Code Playgroud)