Skip to content

Commit

Permalink
Add plotly vignette to index
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferis committed Oct 5, 2019
1 parent c616745 commit d0c744e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ articles:
- '`neurons-intro`'
- '`neurons-as-graph`'
- '`NeuroGeometry`'
- '`plotly`'
reference:
- title: Package Help
desc: Provides an overview of key functions and classes
Expand Down
6 changes: 3 additions & 3 deletions vignettes/neurons-as-graph.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ plot(sg)

It can be useful to plot the graph with a tree layout:

```{r, fig.width=5, fig.height=5}
plot(sg, layout=igraph::layout_as_tree, edge.arrow.size=.3, vertex.size=12)
```{r, fig.width=6, fig.height=6}
plot(sg, layout=igraph::layout_as_tree, edge.arrow.size=.3, vertex.size=20)
```

Note that the root of the neuron is placed at the top of the plot (point number
Expand Down Expand Up @@ -158,7 +158,7 @@ igraph::V(sg)$vid[ups]
Here we plot those _terminal_ branchpoints in red while internal branches are
displayed in blue.

```{r}
```{r, fig.height=4, fig.width=5}
plot(n, WithNodes = F)
terminal_branches=igraph::V(sg)$vid[ups]
other_branches=setdiff(branchpoints(n), terminal_branches)
Expand Down

0 comments on commit d0c744e

Please sign in to comment.