Skip to content

Commit

Permalink
plot(interactive = FALSE) in vignettes
Browse files Browse the repository at this point in the history
  • Loading branch information
atusy committed Nov 29, 2018
1 parent 1151871 commit f973845
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion vignettes/add_phase.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ centers
### Compare the initial centroids with X-ray map plotted with heatmap

```{r}
plot(xmap, 'Si', interactive = TRUE)
plot(xmap, 'Si', interactive = FALSE)
```

In this case, an analysist will notice there is something other than olivine.
Expand Down
20 changes: 14 additions & 6 deletions vignettes/basic.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ formals(read_xmap)$renew <-

This vignette introduce a basic procedure of analysis using `qntmap` package using example data.

See https://doi.org/10.2138/am-2018-6323CCBY for technical details.
See https://atusy.github.io/qntmap/#epma-analysis for preparing EPMA data.

See https://doi.org/10.2138/am-2018-6323CCBY for implementations.

# Preparation

Expand Down Expand Up @@ -109,14 +111,20 @@ plot(xmap, 'Si', interactive = FALSE) +

## Plot X-ray map data as heatmap

Plots are by default **interactive**.
Specify 'Si' instead of 'Mg' to see Si map.
Specify `interactive = FALSE` if necessary.
Plots are by default **interactive** with webui.
Selection of elements can be done on webui.

```{r}
plot(xmap, 'Mg', interactive = TRUE)
```{.r}
plot(xmap)
# A following example is non-interactive mode run by
# plot(xmap, 'Mg', interactive = FALSE)
```

```{r, echo = FALSE}
plot(xmap, 'Mg', interactive = FALSE)
```


## Cluster analysis

### Initialize cluster centers
Expand Down

0 comments on commit f973845

Please sign in to comment.