Skip to content

Commit

Permalink
Adding figures
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Mar 30, 2016
1 parent c7c25c1 commit 562afb9
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ out <- plot_infectsuscep(diffnet, bins = 20,K=5, logscale = FALSE, exclude.zeros

### Threshold

```{r, plot_threshold, fig.height=7}
```{r BoringThreshold, plot_threshold, fig.height=7}
# Generating a random graph
set.seed(123)
diffnet <- rdiffnet(500, 20,
Expand All @@ -120,7 +120,7 @@ plot_threshold(diffnet, vertex.cex = "degree")

Using more features

```{r}
```{r NiceThreshold}
data("medInnovationsDiffNet")
size <- sqrt(1 + dgr(medInnovationsDiffNet)[,1])
set.seed(131)
Expand All @@ -138,14 +138,14 @@ plot_threshold(

### Adoption rate

```{r}
```{r Adopters}
plot_adopters(diffnet)
```


### Hazard rate

```{r}
```{r Hazard}
hazard_rate(diffnet)
```

Expand Down
27 changes: 23 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,29 +163,48 @@ diffnet
plot_threshold(diffnet, vertex.cex = .25)
```

![](README_files/figure-markdown_github/plot_threshold-1.png)<!-- -->
![](README_files/figure-markdown_github/BoringThreshold,%20plot_threshold-1.png)<!-- -->

``` r
plot_threshold(diffnet, vertex.cex = "degree")
```

![](README_files/figure-markdown_github/plot_threshold-2.png)<!-- -->
![](README_files/figure-markdown_github/BoringThreshold,%20plot_threshold-2.png)<!-- -->

Using more features

``` r
data("medInnovationsDiffNet")
size <- sqrt(1 + dgr(medInnovationsDiffNet)[,1])
set.seed(131)
plot_threshold(
medInnovationsDiffNet,
vertex.label = nodes(medInnovationsDiffNet),
vertex.cex = size/10, vertex.lab.pos = NULL,
vertex.lab.cex = size/4,
vertex.sides = medInnovationsDiffNet[["city"]] + 2,
sub = "Note: Vertices' sizes and shapes given by degree and city respectively",
jitter.factor = c(1,1), jitter.amount = c(.25,.025)
)
```

![](README_files/figure-markdown_github/NiceThreshold-1.png)<!-- -->

### Adoption rate

``` r
plot_adopters(diffnet)
```

![](README_files/figure-markdown_github/unnamed-chunk-2-1.png)<!-- -->
![](README_files/figure-markdown_github/Adopters-1.png)<!-- -->

### Hazard rate

``` r
hazard_rate(diffnet)
```

![](README_files/figure-markdown_github/unnamed-chunk-3-1.png)<!-- -->
![](README_files/figure-markdown_github/Hazard-1.png)<!-- -->

### Diffusion process

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 README_files/figure-markdown_github/Hazard-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 README_files/figure-markdown_github/plot_diffnet-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 README_files/figure-markdown_github/plot_threshold-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 README_files/figure-markdown_github/plot_threshold-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 README_files/figure-markdown_github/unnamed-chunk-2-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 README_files/figure-markdown_github/unnamed-chunk-3-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 562afb9

Please sign in to comment.