Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ p.mat[1:4, 1:4]
The default draws each correlation as a colored square; `method = "circle"`
encodes the value with the circle area instead.

```{r basic, fig.width = 5.2, fig.height = 5, fig.show = "hold", out.width = "49%"}
```{r basic, fig.width = 5.2, fig.height = 5, fig.show = "hold", out.width = "49%", fig.align = "default"}
ggcorrplot(corr)
ggcorrplot(corr, method = "circle")
```
Expand All @@ -90,7 +90,7 @@ ggcorrplot(corr, method = "circle")
correlations dominate; `cell.grid = TRUE` draws a light box around every cell so
the glyphs sit inside a grid instead of floating on the axis lines.

```{r boxed, fig.width = 5.2, fig.height = 5, fig.show = "hold", out.width = "49%"}
```{r boxed, fig.width = 5.2, fig.height = 5, fig.show = "hold", out.width = "49%", fig.align = "default"}
ggcorrplot(corr, scale.square = TRUE, cell.grid = TRUE, outline.color = "white")
ggcorrplot(corr, method = "circle", cell.grid = TRUE)
```
Expand All @@ -101,7 +101,7 @@ ggcorrplot(corr, method = "circle", cell.grid = TRUE)
correlated variables sit together. `hc.rect` then draws rectangles around the
clusters obtained by cutting the tree.

```{r cluster, fig.width = 5.2, fig.height = 5, fig.show = "hold", out.width = "49%"}
```{r cluster, fig.width = 5.2, fig.height = 5, fig.show = "hold", out.width = "49%", fig.align = "default"}
ggcorrplot(corr, hc.order = TRUE, outline.color = "white")
ggcorrplot(corr, hc.order = TRUE, hc.rect = 3, outline.color = "white")
```
Expand All @@ -110,7 +110,7 @@ ggcorrplot(corr, hc.order = TRUE, hc.rect = 3, outline.color = "white")

For a symmetric matrix the two triangles are redundant, so you can keep just one.

```{r triangle, fig.width = 5.2, fig.height = 5, fig.show = "hold", out.width = "49%"}
```{r triangle, fig.width = 5.2, fig.height = 5, fig.show = "hold", out.width = "49%", fig.align = "default"}
ggcorrplot(corr, hc.order = TRUE, type = "lower", outline.color = "white")
ggcorrplot(corr, hc.order = TRUE, type = "upper", outline.color = "white")
```
Expand Down Expand Up @@ -141,7 +141,7 @@ Passing `p.mat` marks the cells whose correlation is not significant at
`sig.level` (default 0.05). By default a cross is drawn over them (`insig =
"pch"`); `insig = "blank"` hides them instead.

```{r insig, fig.width = 5.2, fig.height = 5, fig.show = "hold", out.width = "49%"}
```{r insig, fig.width = 5.2, fig.height = 5, fig.show = "hold", out.width = "49%", fig.align = "default"}
# Cross out the non-significant coefficients
ggcorrplot(corr, hc.order = TRUE, type = "lower", p.mat = p.mat)
# Leave them blank
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ ggcorrplot(corr)
ggcorrplot(corr, method = "circle")
```

<img src="man/figures/README-basic-1.png" alt="" width="49%" style="display: block; margin: auto;" /><img src="man/figures/README-basic-2.png" alt="" width="49%" style="display: block; margin: auto;" />
<img src="man/figures/README-basic-1.png" alt="" width="49%" /><img src="man/figures/README-basic-2.png" alt="" width="49%" />

### Sized glyphs in boxed cells

Expand All @@ -99,7 +99,7 @@ ggcorrplot(corr, scale.square = TRUE, cell.grid = TRUE, outline.color = "white")
ggcorrplot(corr, method = "circle", cell.grid = TRUE)
```

<img src="man/figures/README-boxed-1.png" alt="" width="49%" style="display: block; margin: auto;" /><img src="man/figures/README-boxed-2.png" alt="" width="49%" style="display: block; margin: auto;" />
<img src="man/figures/README-boxed-1.png" alt="" width="49%" /><img src="man/figures/README-boxed-2.png" alt="" width="49%" />

### Reorder by clustering, and outline the clusters

Expand All @@ -112,7 +112,7 @@ ggcorrplot(corr, hc.order = TRUE, outline.color = "white")
ggcorrplot(corr, hc.order = TRUE, hc.rect = 3, outline.color = "white")
```

<img src="man/figures/README-cluster-1.png" alt="" width="49%" style="display: block; margin: auto;" /><img src="man/figures/README-cluster-2.png" alt="" width="49%" style="display: block; margin: auto;" />
<img src="man/figures/README-cluster-1.png" alt="" width="49%" /><img src="man/figures/README-cluster-2.png" alt="" width="49%" />

### Lower / upper triangle

Expand All @@ -124,7 +124,7 @@ ggcorrplot(corr, hc.order = TRUE, type = "lower", outline.color = "white")
ggcorrplot(corr, hc.order = TRUE, type = "upper", outline.color = "white")
```

<img src="man/figures/README-triangle-1.png" alt="" width="49%" style="display: block; margin: auto;" /><img src="man/figures/README-triangle-2.png" alt="" width="49%" style="display: block; margin: auto;" />
<img src="man/figures/README-triangle-1.png" alt="" width="49%" /><img src="man/figures/README-triangle-2.png" alt="" width="49%" />

### Mixed layout

Expand Down Expand Up @@ -163,7 +163,7 @@ ggcorrplot(corr, hc.order = TRUE, type = "lower", p.mat = p.mat)
ggcorrplot(corr, hc.order = TRUE, type = "lower", p.mat = p.mat, insig = "blank")
```

<img src="man/figures/README-insig-1.png" alt="" width="49%" style="display: block; margin: auto;" /><img src="man/figures/README-insig-2.png" alt="" width="49%" style="display: block; margin: auto;" />
<img src="man/figures/README-insig-1.png" alt="" width="49%" /><img src="man/figures/README-insig-2.png" alt="" width="49%" />

### Significance map

Expand Down
Loading