Skip to content

Commit

Permalink
update site
Browse files Browse the repository at this point in the history
  • Loading branch information
m-clark committed Aug 17, 2018
1 parent 5557c19 commit dc3f088
Show file tree
Hide file tree
Showing 32 changed files with 362 additions and 191 deletions.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# visibly 0.2

## visibly 0.2.5

* Add plot_gam_3d.

## visibly 0.2.4

* Add corr_heat.
Expand Down
3 changes: 2 additions & 1 deletion R/corr_heat.R
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ corr_heat <- function(cormat,
theme_plotly()

# plotly gives a warning it can't do limits, then does them; this appears
# the only way to suppress
# the only way to suppress, but then won't work for Rmd html output; see
# issue #1202
suppressWarnings({ print(p) })

} else {
Expand Down
22 changes: 6 additions & 16 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -62,23 +62,9 @@ Plot it to get a feel for things.
create_palette('#ff5500', plot = T)
```

There are some other options to express.

```{r plot2}
create_palette('#ff5500',
alpha = .5,
plot = T,
name = 'orange_you_glad_you_have_this_color')
```


One of the built-in palettes is based on R's blue. Others are based on [Stan's](https://github.com/stan-dev/stan) red, [plotly's](https://github.com/ropensci/plotly) base colors, and the red-blue palette from [RColorBrewer](https://github.com/cran/RColorBrewer/blob/master/R/ColorBrewer.R).


```{r rblue}
palettes$Rblue
```

A clean theme for <span class="pack">plotly</span>.

```{r example4}
Expand All @@ -89,14 +75,18 @@ mtcars %>%
theme_plotly()
```

Visualize a correlation matrix.
Visualize a correlation matrix via factor analysis.

```{r corrheat1}
```{r corrheat1, eval=FALSE}
data('bfi', package = 'visibly')
cor_matrix = cor(bfi, use='pair')
corr_heat(cor_matrix)
```

<img src='man/figures/corr_heat.png' style="display:block; margin: 0 auto;" width=50%>
<br>
<img src='man/figures/corr_heat_3d.png' style="display:block; margin: 0 auto;" width=50%>


Plot some model coefficients. Requires the <span class="pack">scico</span> package.

Expand Down
62 changes: 4 additions & 58 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,68 +101,12 @@ create_palette('#ff5500', plot = T)
$tetradic
[1] "#FF5500" "#AAFF00" "#00AAFF" "#5500FF"

There are some other options to express.

``` r
create_palette('#ff5500',
alpha = .5,
plot = T,
name = 'orange_you_glad_you_have_this_color')
```

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

$orange_you_glad_you_have_this_color
[1] "#FF550080"

$complementary
[1] "#FF550080" "#00AAFF80"

$analogous
[1] "#FF550080" "#FFD50080" "#FF002B80"

$split_complentary
[1] "#FF550080" "#00FFD480" "#002BFF80"

$triadic
[1] "#FF550080" "#00FF5580" "#5500FF80"

$square
[1] "#FF550080" "#2AFF0080" "#00AAFF80" "#D500FF80"

$tetradic
[1] "#FF550080" "#AAFF0080" "#00AAFF80" "#5500FF80"

One of the built-in palettes is based on R’s blue. Others are based on
[Stan’s](https://github.com/stan-dev/stan) red,
[plotly’s](https://github.com/ropensci/plotly) base colors, and the
red-blue palette from
[RColorBrewer](https://github.com/cran/RColorBrewer/blob/master/R/ColorBrewer.R).

``` r
palettes$Rblue
$Rblue
[1] "#1f65b7"

$complementary
[1] "#1f65b7" "#b7701f"

$monochromatic
[1] "#1f65b7" "#366caa" "#4a719e" "#5a7491"

$analogous
[1] "#1f65b7" "#241fb7" "#1fb2b7"

$split_complementary
[1] "#1f65b7" "#b2b71f" "#b7241f"

$triadic
[1] "#1f65b7" "#66b71f" "#b71f66"

$tetradic
[1] "#1f65b7" "#b7701f" "#66b71f" "#701fb7"
```

A clean theme for <span class="pack">plotly</span>.

``` r
Expand All @@ -175,15 +119,17 @@ mtcars %>%

<img src="man/figures/README-example4-1.png" width="75%" style="display: block; margin: auto;" />

Visualize a correlation matrix.
Visualize a correlation matrix via factor analysis.

``` r
data('bfi', package = 'visibly')
cor_matrix = cor(bfi, use='pair')
corr_heat(cor_matrix)
```

<img src="man/figures/README-corrheat1-1.png" width="75%" style="display: block; margin: auto;" />
<img src='man/figures/corr_heat.png' style="display:block; margin: 0 auto;" width=50%>
<br>
<img src='man/figures/corr_heat_3d.png' style="display:block; margin: 0 auto;" width=50%>

Plot some model coefficients. Requires the
<span class="pack">scico</span> package.
Expand Down
3 changes: 2 additions & 1 deletion _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ highlight: pygments


home:
strip_header: true
#strip_header: true
links:
- text: Docs on Stats, R, and more
href: http://m-clark.github.io
Expand Down Expand Up @@ -58,6 +58,7 @@ reference:
- plot_gam
- plot_gam_check
- plot_gam_2d
- plot_gam_3d
- plot_gam_by

figures:
Expand Down
51 changes: 29 additions & 22 deletions docs/articles/intro.html

Large diffs are not rendered by default.

Binary file modified docs/articles/intro_files/figure-html/gam-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/articles/intro_files/figure-html/gam-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/articles/intro_files/figure-html/gam-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
93 changes: 23 additions & 70 deletions docs/index.html

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion docs/reference/corr_heat.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified docs/reference/figures/README-gam-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/figures/README-gam-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/reference/figures/corr_heat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/reference/figures/corr_heat_3d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions docs/reference/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/reference/plot_coefficients.brmsfit.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/reference/plot_coefficients.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions docs/reference/plot_coefficients.lm.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/reference/plot_coefficients.merMod.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion docs/reference/plot_gam.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion docs/reference/plot_gam_2d.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit dc3f088

Please sign in to comment.