Skip to content

Commit ad94ad0

Browse files
committed
Update README.Rmd to use local version
1 parent 737e5ae commit ad94ad0

3 files changed

Lines changed: 22 additions & 1 deletion

File tree

README.Rmd

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ output: github_document
44

55
```{r setup, echo = FALSE}
66
suppressWarnings(suppressPackageStartupMessages({
7-
library(DataExplorer)
87
library(knitr)
98
library(ggplot2)
109
library(gridExtra)
10+
library(devtools)
11+
load_all()
1112
}))
1213
set.seed(1)
1314
@@ -117,6 +118,7 @@ DataExplorer:::plotDataExplorer.grid(
117118
ncol = 2L,
118119
ggtheme = theme_gray(),
119120
theme_config = list(),
121+
plotly = FALSE,
120122
title = NULL
121123
)
122124
```
@@ -135,6 +137,16 @@ plot_histogram(diamonds)
135137
plot_histogram(diamonds, nrow = 3L, ncol = 3L)
136138
```
137139

140+
```{r plot-histogram-by-template}
141+
## View histogram of all continuous variables
142+
plot_histogram(diamonds, by = "cut")
143+
```
144+
145+
```{r plot-histogram-by, echo=FALSE, eval=TRUE}
146+
## View histogram of all continuous variables by a discrete variable
147+
plot_histogram(diamonds, nrow = 3L, ncol = 3L, by = "cut")
148+
```
149+
138150
```{r plot-density-template}
139151
## View estimated density distribution of all continuous variables
140152
plot_density(diamonds)

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11

2+
## ℹ Loading DataExplorer
3+
24
# DataExplorer <img src="man/figures/logo.png" align="right" width="130" height="150"/>
35

46
[![CRAN
@@ -139,6 +141,13 @@ plot_histogram(diamonds)
139141

140142
![](man/figures/README-plot-histogram-1.png)<!-- -->
141143

144+
``` r
145+
## View histogram of all continuous variables
146+
plot_histogram(diamonds, by = "cut")
147+
```
148+
149+
![](man/figures/README-plot-histogram-by-1.png)<!-- -->
150+
142151
``` r
143152
## View estimated density distribution of all continuous variables
144153
plot_density(diamonds)
50.3 KB
Loading

0 commit comments

Comments
 (0)