Carregant...
 
22 d’abril 2024 - Creació d'Aplicacions Interactives sense servidor i avançar projecte

Creació d'Aplicacions Interactives sense servidor i avançar projecte

Curs R Avançat Equips - Sessió 4

1. Avui

1.1. Eines útils extra

  1. Addins (i paquet addinslist )
  2. Addin CRANSearcher: CRAN Package Searcher
  3. Gràfics ggplot2 amb shiny UI: esquisse
  4. Interactivitat amb Htmlwidgets
    1. Gràfics: de ggplot2 a ggplotly
    2. Taules dinàmiques i Heatmaps, gràfics exploratoris, amb rPivotTable

1.2. Dashboards interactius via Markdown sense requerir servidor (1): flexdashboardcrosstalk

Documentació per aprendre pas a pas:

Flexdashboard
https://pkgs.rstudio.com/flexdashboard/
https://www.paulamoraga.com/book-geospatial/sec-flexdashboard.html#sec-flexdashboard

Crosstalk:
https://rstudio.github.io/crosstalk/

1.2.1. Exercici (demo) resolt

Sessio_04_Exercici_Flexdashboard_i_Crosstalk.Rmd

2024 04 22 00 20 27 C Code Curs R Avancat Equips Sessio 04 Sessio 04 Exercici Flexdashboard I Cross

1.3. Dashboards interactius via Markdown sense requerir servidor (2): manipulateWidget

Documentació per aprendre pas a pas:
https://github.com/rte-antares-rpackage/manipulateWidget
https://cran.r-project.org/web/packages/manipulateWidget/vignettes/manipulateWidgets.html

manipulateWidget lets you create in just a few lines of R code a nice user interface to modify the data or the graphical parameters of one or multiple interactive charts. It is useful to quickly explore visually some data or for package developers to generate user interfaces easy to maintain.

This R package is largely inspired by the manipulate package from Rstudio. It provides the function manipulateWidget that can be used to create in a very easy way a graphical interface that let the user modify the data or the parameters of an interactive chart. Technically, the function generates a Shiny gadget, but the user does not even have to know what is Shiny.

manipulateWidget has three advantages:

  • It is easy and fast to use. Only a few lines of R are necessary to create a user interface.
  • Code can be included in any R script. No need to create a dedicated .R or .Rmd file.
  • It works with all htmlwidgets. In contrast, crosstalk only supports a few of them.


Image

1.3.1. Exercici (demo) resolt

Sessio_04_Exercici_ManipulateWidget.Rmd

2024 04 22 00 23 21

1.4. Avançar el treball pendent col.laboratiu per equips

El treball pendent col.laboratiu per equips iniciat a la 3a sessió del curs.

1.5. Opcionalment, explorar l'ús del Gitlab de la Generalitat de Catalunyagit.intranet.gencat.cat

  1. Proveu de migrar el codi (amb el control de versions git inclòs) cap al gitlab Gencat:
    • URL Accés: https://git.intranet.gencat.cat/users/sign_in
      Atenció: Des del Wifi visites_gencat del curs a l'edifici del Districte Administratiu, no és té accés a la intranet de la Generalitat. Cal accés des d'una altra wifi o per cable.
    • importar desde gitlab.com o des de projecte local controlat per git.
    • Continuar treballant contra el Gitlab Gencat.
  2. Proveu de clonar o importar al vostre RStudio local un repositori remot amb projecte d'R pre-existent, obert a altres usuaris amb accés al Gitlab Gencat:
  3. Proveu de crear un projecte nou, provant el sistema d'enviament d'informes per correu-e via R amb infraestructura Gencat:




Noms alias d'aquest pàgina: CursRAvancatEquipsS4

Image Llavor: nom \ˈllavor\ : el principi d'alguna cosa que continua desenvolupant-se o creixent

Llavors de coneixement

Canvia l'Idioma