Commit 80ec957f authored by houyun's avatar houyun
Browse files

add examples

parent ab343443
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -10,6 +10,13 @@
#' @rdname set_style
#' @author Hou Yun
#' @export
#' @examples
#' ## use corrplot style
#' set_corrplot_style()
#' qcorrplot(mtcars) + geom_shaping(marker = "circle")
#' ## use custom colour palee
#' set_corrplot_style(colours = c("red", "white", "blue"))
#' qcorrplot(mtcars) + geom_shaping(marker = "circle")
print.hyplot <- function(x, ...) {
  if (inherits(x$data, "cor_md_tbl") &&
      !is.null(getOption("linkET.corrplot.style")) &&
+8 −0
Original line number Diff line number Diff line
@@ -37,6 +37,14 @@ set_default_style()
\description{
Set default color pallete for \code{\link{qcorrplot}}.
}
\examples{
## use corrplot style
set_corrplot_style()
qcorrplot(mtcars) + geom_shaping(marker = "circle")
## use custom colour palee
set_corrplot_style(colours = c("red", "white", "blue"))
qcorrplot(mtcars) + geom_shaping(marker = "circle")
}
\author{
Hou Yun
}