여기 ("<func>"
이 ggplot2 내 보낸 함수 중 하나를 의미 곳, ?"<func>"
을 입력하여 제기 될 수있다 또는 적어도 그 도움말 파일)을 ggplot2 도움말 파일에 언급 된 ..*..
모든 옵션입니다.
library(ggplot2)
## Read all of the ggplot2 help files and convert them to character vectors
ex <- unlist(lapply(ls("package:ggplot2"), function(g) {
p = utils:::index.search(g, find.package(), TRUE)
capture.output(tools::Rd2txt(utils:::.getHelpFile(p)))
}))
## Extract all mentions of "..*.." from the character vectors
pat <- "\\.\\.\\w*\\.\\."
m <- gregexpr(pat, ex)
unique(unlist(regmatches(ex,m)))
# [1] "..density.." "..count.." "..level.." "..scaled.." "..quantile.."
# [6] "..n.."
또는이 파일 문서
..*..
도움이되는 찾아,이 실행
library(ggplot2)
ex <- sapply(ls("package:ggplot2"), function(g) {
p = utils:::index.search(g, find.package(), TRUE)
capture.output(tools::Rd2txt(utils:::.getHelpFile(p)))
}, simplify=FALSE, USE.NAMES=TRUE)
res <- lapply(ex, function(X) {
m <- gregexpr("\\.\\.\\w*\\.\\.", X)
unique(unlist(regmatches(X, m)))
})
res[sapply(res, length) > 0]
음, * 모든'stat_에 대한 문서를 통해'기능을 가서 "값"에서 찾습니다. – Roland
특수 문자로 SymbolHound를 사용할 수도 있습니다. (http://www.symbolhound.com/?q=..count ..) –
SymbolHound 링크를 좋아하지만 "실제"R 문서 페이지에 대한 링크가 아니라 SO 링크 만 가져 오는 것이 흥미 롭습니다. –