Commit 32a37926 authored by houyun's avatar houyun
Browse files

set plot aspect ratio

parent 03f586ea
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -176,7 +176,6 @@ importFrom(ggplot2,aes)
importFrom(ggplot2,aes_)
importFrom(ggplot2,aes_string)
importFrom(ggplot2,binned_scale)
importFrom(ggplot2,coord_fixed)
importFrom(ggplot2,discrete_scale)
importFrom(ggplot2,draw_key_path)
importFrom(ggplot2,draw_key_polygon)
+2 −3
Original line number Diff line number Diff line
@@ -5,13 +5,12 @@
#' @param drop logical.
#' @param grid_col colour of panel grid.
#' @param grid_size size of panel grid.
#' @param fixed if TRUE (default), the coordinates will have a fixed aspect ratio.
#' @param fixed if TRUE (default), will add \code{coord_fixed()} to plot.
#' @param use_md logical. if TRUE, will use \code{ggtext::element_markdown()} to
#' draw the axis labels.
#' @param facets NULL or a parameters list of \code{facet_wrap}.
#' @param ... other parameters.
#' @return a gg object.
#' @importFrom ggplot2 coord_fixed
#' @rdname qcorrplot
#' @author Hou Yun
#' @export
@@ -58,7 +57,7 @@ qcorrplot.cor_md_tbl <- function(data,

  ## coord fixed?
  if(isTRUE(fixed)) {
    p <- p + coord_fixed()
    p <- p + ggplot2::coord_fixed()
  }

  ## remove the panel background
+1 −1
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ qcorrplot(data, ...)

\item{grid_size}{size of panel grid.}

\item{fixed}{if TRUE (default), the coordinates will have a fixed aspect ratio.}
\item{fixed}{if TRUE (default), will add \code{coord_fixed()} to plot.}

\item{use_md}{logical. if TRUE, will use \code{ggtext::element_markdown()} to
draw the axis labels.}