Skip to content
This repository has been archived by the owner on Jan 10, 2021. It is now read-only.

Commit

Permalink
#12 Add "Set the Default Node Color"
Browse files Browse the repository at this point in the history
  • Loading branch information
kozo2 committed Nov 30, 2019
1 parent 0d7ae82 commit 124aa49
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions mapping-data.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,23 @@ print(gal80rexp.max)
setNodeColorMapping("gal80Rexp", c(-gal80rexp.max, 0, gal80rexp.max), c('#0000FF', '#FFFFFF', '#FF0000'))
```

```{r}
fitContent()
```

- The network should now look like this:

![](https://cytoscape.org/cytoscape-tutorials/protocols/mapping-data/NetworkBrewer.png)

# Set the Default Node Color

Note that the default node color of pale blue is close to the color range in the created palette.
A useful trick is to choose a color outside this spectrum to distinguish nodes with no defined expression value and those with slight repression.

- Here we choose a dark gray color for default node color.

```{r}
setNodeColorDefault('#A9A9A9')
```

- Zoom out on the network view to verify that a few nodes have been colored gray.

```{r}
fitContent()
```

0 comments on commit 124aa49

Please sign in to comment.