Skip to content

Commit

Permalink
Update vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroguarderas committed Oct 26, 2023
1 parent 6984e0f commit a8f496d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions vignettes/Running_MAUT.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ index <- data.table( cod = paste( 'A', 1:10, sep = '' ),
knitr::kable( index )
```

2. Loading file with utilities
3. Loading file with utilities
```{r,eval=TRUE}
file <- system.file( "extdata", "utilities.txt", package = "mau" )
script <- 'utilities.R'
Expand Down Expand Up @@ -143,9 +143,12 @@ plot( tree, layout = layout_as_tree )
weights <- tree.data[ !is.na( weight ) ]$weight
model <- compute_model( tree, utilities, weights )
```
```{r, echo=FALSE, results='asis'}
knitr::kable( model )
```

6. Bar plot for every utility
```{r,eval=TRUE, fig.show='hold', fig.align="center", fig.width=7, fig.height=4}
```{r,eval=TRUE, fig.show='hold', fig.align="center", fig.width=7, fig.height=5}
xlab <- 'Utility'
ylab <- 'Institutions'
title <- 'Criteria utilities'
Expand Down

0 comments on commit a8f496d

Please sign in to comment.