Skip to content

Commit

Permalink
Update readme and revdep
Browse files Browse the repository at this point in the history
  • Loading branch information
edgararuiz committed Jan 5, 2018
1 parent e984544 commit 2129b43
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 29 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ spark_flights %>%
dbplot_histogram(sched_dep_time)
```

<img src="README_files/figure-markdown_github/unnamed-chunk-4-1.png" style="display: block; margin: auto;" />
<img src="tools/readme/unnamed-chunk-4-1.png" style="display: block; margin: auto;" />

Use `binwidth` to fix the bin size

Expand All @@ -76,7 +76,7 @@ spark_flights %>%
dbplot_histogram(sched_dep_time, binwidth = 200)
```

<img src="README_files/figure-markdown_github/unnamed-chunk-5-1.png" style="display: block; margin: auto;" />
<img src="tools/readme/unnamed-chunk-5-1.png" style="display: block; margin: auto;" />

Because it outputs a `ggplot2` object, more customization can be done

Expand All @@ -87,7 +87,7 @@ spark_flights %>%
theme_bw()
```

<img src="README_files/figure-markdown_github/unnamed-chunk-6-1.png" style="display: block; margin: auto;" />
<img src="tools/readme/unnamed-chunk-6-1.png" style="display: block; margin: auto;" />

### Raster

Expand All @@ -103,7 +103,7 @@ spark_flights %>%
dbplot_raster(arr_delay, dep_delay)
```

<img src="README_files/figure-markdown_github/unnamed-chunk-7-1.png" style="display: block; margin: auto;" />
<img src="tools/readme/unnamed-chunk-7-1.png" style="display: block; margin: auto;" />

- Pass an aggregation formula that can run inside the database

Expand All @@ -113,7 +113,7 @@ spark_flights %>%
dbplot_raster(arr_delay, dep_delay, mean(distance, na.rm = TRUE))
```

<img src="README_files/figure-markdown_github/unnamed-chunk-8-1.png" style="display: block; margin: auto;" />
<img src="tools/readme/unnamed-chunk-8-1.png" style="display: block; margin: auto;" />

- Increase or decrease for more, or less, definition. The `resolution` argument controls that, it defaults to 100

Expand All @@ -123,7 +123,7 @@ spark_flights %>%
dbplot_raster(arr_delay, dep_delay, mean(distance, na.rm = TRUE), resolution = 500)
```

<img src="README_files/figure-markdown_github/unnamed-chunk-9-1.png" style="display: block; margin: auto;" />
<img src="tools/readme/unnamed-chunk-9-1.png" style="display: block; margin: auto;" />

### Bar Plot

Expand All @@ -134,7 +134,7 @@ spark_flights %>%
dbplot_bar(origin)
```

<img src="README_files/figure-markdown_github/unnamed-chunk-10-1.png" style="display: block; margin: auto;" />
<img src="tools/readme/unnamed-chunk-10-1.png" style="display: block; margin: auto;" />

- Pass a formula that will be operated for each value in the discrete variable

Expand All @@ -146,7 +146,7 @@ spark_flights %>%
## Warning: Missing values are always removed in SQL.
## Use `AVG(x, na.rm = TRUE)` to silence this warning

<img src="README_files/figure-markdown_github/unnamed-chunk-11-1.png" style="display: block; margin: auto;" />
<img src="tools/readme/unnamed-chunk-11-1.png" style="display: block; margin: auto;" />

### Line plot

Expand All @@ -157,7 +157,7 @@ spark_flights %>%
dbplot_line(month)
```

<img src="README_files/figure-markdown_github/unnamed-chunk-12-1.png" style="display: block; margin: auto;" />
<img src="tools/readme/unnamed-chunk-12-1.png" style="display: block; margin: auto;" />

- Pass a formula that will be operated for each value in the discrete variable

Expand All @@ -169,7 +169,7 @@ spark_flights %>%
## Warning: Missing values are always removed in SQL.
## Use `AVG(x, na.rm = TRUE)` to silence this warning

<img src="README_files/figure-markdown_github/unnamed-chunk-13-1.png" style="display: block; margin: auto;" />
<img src="tools/readme/unnamed-chunk-13-1.png" style="display: block; margin: auto;" />

### Boxplot

Expand All @@ -180,7 +180,7 @@ spark_flights %>%
dbplot_boxplot(origin, dep_delay)
```

<img src="README_files/figure-markdown_github/unnamed-chunk-14-1.png" style="display: block; margin: auto;" />
<img src="tools/readme/unnamed-chunk-14-1.png" style="display: block; margin: auto;" />

Calculation functions
---------------------
Expand Down Expand Up @@ -222,7 +222,7 @@ spark_flights %>%
geom_col(aes(arr_delay, count, fill = count))
```

<img src="README_files/figure-markdown_github/unnamed-chunk-16-1.png" style="display: block; margin: auto;" />
<img src="tools/readme/unnamed-chunk-16-1.png" style="display: block; margin: auto;" />

`db_bin()`
----------
Expand Down Expand Up @@ -273,4 +273,4 @@ spark_flights %>%
geom_col(aes(x, n))
```

<img src="README_files/figure-markdown_github/unnamed-chunk-19-1.png" style="display: block; margin: auto;" />
<img src="tools/readme/unnamed-chunk-19-1.png" style="display: block; margin: auto;" />
21 changes: 13 additions & 8 deletions revdep/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,24 @@
|setting |value |
|:--------|:----------------------------|
|version |R version 3.4.3 (2017-11-30) |
|system |x86_64, linux-gnu |
|ui |RStudio (1.1.383) |
|system |x86_64, mingw32 |
|ui |RStudio (1.2.177) |
|language |(EN) |
|collate |en_US.UTF-8 |
|tz |Zulu |
|collate |English_United States.1252 |
|tz |America/Chicago |
|date |2018-01-05 |

## Packages

|package |* |version |date |source |
|:-------|:--|:-------|:----------|:----------------------------|
|dbplot |* |0.2.0 |2018-01-05 |local (edgararuiz/dbplot@NA) |
|dbplyr | |1.2.0 |2018-01-03 |cran (@1.2.0) |
|package |* |version |date |source |
|:--------|:--|:-------|:----------|:----------------------------|
|dbplot |* |0.2.0 |2018-01-05 |local (edgararuiz/dbplot@NA) |
|dbplyr | |1.2.0 |2018-01-03 |CRAN (R 3.4.3) |
|dplyr |* |0.7.4 |2017-09-28 |CRAN (R 3.4.3) |
|ggplot2 | |2.2.1 |2016-12-30 |CRAN (R 3.4.3) |
|rlang |* |0.1.6 |2017-12-21 |CRAN (R 3.4.3) |
|testthat | |2.0.0 |2017-12-13 |CRAN (R 3.4.3) |
|tidyr | |0.7.2 |2017-10-16 |CRAN (R 3.4.3) |

# Check results

Expand Down
Binary file modified revdep/checks.rds
Binary file not shown.
21 changes: 13 additions & 8 deletions revdep/problems.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,24 @@
|setting |value |
|:--------|:----------------------------|
|version |R version 3.4.3 (2017-11-30) |
|system |x86_64, linux-gnu |
|ui |RStudio (1.1.383) |
|system |x86_64, mingw32 |
|ui |RStudio (1.2.177) |
|language |(EN) |
|collate |en_US.UTF-8 |
|tz |Zulu |
|collate |English_United States.1252 |
|tz |America/Chicago |
|date |2018-01-05 |

## Packages

|package |* |version |date |source |
|:-------|:--|:-------|:----------|:----------------------------|
|dbplot |* |0.2.0 |2018-01-05 |local (edgararuiz/dbplot@NA) |
|dbplyr | |1.2.0 |2018-01-03 |cran (@1.2.0) |
|package |* |version |date |source |
|:--------|:--|:-------|:----------|:----------------------------|
|dbplot |* |0.2.0 |2018-01-05 |local (edgararuiz/dbplot@NA) |
|dbplyr | |1.2.0 |2018-01-03 |CRAN (R 3.4.3) |
|dplyr |* |0.7.4 |2017-09-28 |CRAN (R 3.4.3) |
|ggplot2 | |2.2.1 |2016-12-30 |CRAN (R 3.4.3) |
|rlang |* |0.1.6 |2017-12-21 |CRAN (R 3.4.3) |
|testthat | |2.0.0 |2017-12-13 |CRAN (R 3.4.3) |
|tidyr | |0.7.2 |2017-10-16 |CRAN (R 3.4.3) |

# Check results

Expand Down

0 comments on commit 2129b43

Please sign in to comment.