-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
71 lines (51 loc) · 1.91 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
devtools::load_all()
```
# <img src="https://user-images.githubusercontent.com/47225177/118192101-fd329780-b41b-11eb-80d0-10a1e4295b37.png" width="150" align="right"/> qualiscapes
<!-- badges: start -->
[![R-CMD-check](https://github.com/ramongss/qualiscapes/workflows/R-CMD-check/badge.svg)](https://github.com/ramongss/qualiscapes/actions)
<!-- badges: end -->
The goal of `qualiscapes` is to get the preliminary 2019 QUALIS CAPES.
## Installation
You can install the development version from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("ramongss/qualiscapes")
```
## Example
Retrieve the data from the `get_qualis()` function, and show the head of the dataframe.
```{r echo=TRUE, message=FALSE, warning=FALSE}
da_qualis <- qualiscapes::get_qualis(file = NULL)
head(da_qualis)
```
Summarize the dataframe counting the number of journals/congresses according to the Qualis CAPES.
```{r echo=TRUE}
count_qualis <-
da_qualis %>%
dplyr::mutate(qualis = ESTRATO_2019) %>%
dplyr::group_by(qualis) %>%
dplyr::summarise(count = dplyr::n())
count_qualis
```
Plot the `count_qualis` dataframe to visualize the number of journals/congresses according to the preliminary 2019 Qualis CAPES.
```{r echo=TRUE}
count_qualis %>%
ggplot2::ggplot(ggplot2::aes(x = qualis, y = count)) +
ggplot2::geom_col(ggplot2::aes(fill = qualis), colour = "black", show.legend = FALSE) +
ggplot2::geom_text(ggplot2::aes(label = count), nudge_y = 300) +
ggplot2::theme_bw() +
ggplot2::labs(x = "Qualis CAPES", y = "No. of Journals/Congresses") +
ggplot2::scale_color_discrete()
```
## Shiny App
https://ramongss.shinyapps.io/qualiscapes/