Skip to content
Snippets Groups Projects
Commit 22cf8b2b authored by Thomas Soubiran's avatar Thomas Soubiran
Browse files

Ajout intro-r + geoviz + màj REDAME

parent 2b2f0425
Branches
No related tags found
No related merge requests found
Showing
with 321124 additions and 34 deletions
......@@ -2,15 +2,9 @@
<p>Ce dépôt rassemble les supports, scripts, données et autres ressources utilisées lors de <a href="https://ceraps.univ-lille.fr/quantilille/">l’École d’été méthodes quantitatives en sciences sociales</a> 2021.</p>
<p>Nous remercions les intervenantes et intervenants de nous avoir permis de mettre leurs supports en ligne.</p>
<p>Ces contenus sont diffusés sous licence XXX sauf mention contraire dans le répertoire correspondant.</p>
<h2 id="module-nᵒ-1-traitement-quantitatif-de-données-textuelles-nettoyage-exploration-analyse">Module nᵒ 1 : Traitement quantitatif de données textuelles : nettoyage, exploration, analyse</h2>
<h2 id="module-nᵒ-1-traitement-quantitatif-de-données-textuelles-nettoyage-exploration-analyse">Module nᵒ 1 : Traitement quantitatif de données textuelles nettoyage, exploration, analyse</h2>
<p>Module organisé par <a href="https://pro.univ-lille.fr/julien-boelaert">Julien Boelaert</a> et <a href="https://www.centre-max-weber.fr/Samuel-Coavoux">Samuel Coavoux</a></p>
<table>
<tbody>
<tr class="odd">
<td><em>Note :</em> les données utilisées se trouvent dans le répertoire <a href="analyse-textuelle/données/">données</a></td>
</tr>
</tbody>
</table>
<p><strong>Note :</strong> les données utilisées se trouvent dans le répertoire <a href="analyse-textuelle/données/">données</a></p>
<h3 id="lundi-28-juin">Lundi 28 juin</h3>
<p><strong>Présentation de Progedo et de la PUDL (9h-12h)</strong><br />
PUDL</p>
......@@ -20,10 +14,10 @@ Julien Boelaert<br />
<h3 id="mardi-29-juin">Mardi 29 juin :</h3>
<p><strong>Enjeux et évolutions récentes du traitement quantitatif des données textuelles (9h-12h)</strong><br />
<a href="https://sylvainparasie.org">Sylvain Parasie</a><br />
<a href="analyse-textuelle/sparaisie/Parasie_Enjeux%20et%20évolutions%20récentes%20du%20traitement%20quantitatif%20des%20données%20textuelles%20(29juin21).pdf">présentation</a></p>
<a href="analyse-textuelle/sparaisie/analyse-textuelle/sparaisie/Parasie_Enjeux%20et%20évolutions%20récentes%20du%20traitement%20quantitatif%20des%20données%20textuelles%20(29juin21).pdf">présentation</a></p>
<p><strong>Expressions régulières : recherche, nettoyage, mise en forme de corpus (14h-17h)</strong><br />
Julien Boelaert<br />
<a href="">présentation</a><br />
<a href="analyse-textuelle/jboelaert/QL21-Regex.pdf">présentation</a><br />
<a href="analyse-textuelle/jboelaert/TD/TD2-Regex-énoncé.R">script R</a> <a href="analyse-textuelle/jboelaert/TD/TD2-Regex.R">script R</a></p>
<h3 id="mercredi-30-juin">Mercredi 30 juin :</h3>
<p><strong>Introduction à l’analyse textuelle sous R (9h-12h)</strong><br />
......@@ -54,7 +48,7 @@ PUDL</p>
<p><strong>Sources de données géographiques (14h-17h)</strong></p>
<p><em>Avanies et organisation administrative française</em> Thomas Soubiran<br />
<a href="cartographie/table-ronde/qtll2021--orga-fr.pdf">présentation</a></p>
<p><em>La Base adresse nationale</em> Jérôme Desboeufs (etalab)<br />
<p><em>La Base adresse nationale</em> Jérôme Desboeufs (<a href="https://www.etalab.gouv.fr/author/jerome-desboeufs">etalab</a>)<br />
<a href="cartographie/table-ronde/ban.pdf">présentation</a></p>
<p><em>API Géo</em><br />
<a href="cartographie/table-ronde/API-Géo.pdf">présentation</a></p>
......@@ -64,16 +58,17 @@ PUDL</p>
<a href="cartographie/jmorel/exo_intro_geomatique.md">présentation</a></p>
<p><strong>Introduction à R (14h-17h)</strong><br />
Cécile Rodrigues<br />
<a href="">scripts R</a></p>
<a href="cartographie/intro-r">scripts R</a></p>
<h3 id="mercredi-30-juin-1">Mercredi 30 juin :</h3>
<p><strong>Nettoyage de données, géo-encodage (9h-12h)</strong><br />
<a href="github.com/antuki">Kim Antunez</a> (<a href="https://github.com/">github</a>) et <a href="">Étienne Côme</a> (<a href="https://github.com/comeetie">github</a>)<br />
scripts R : <a href="cartographie/ecka/installations_packages.R">installation</a> <a href="cartographie/ecka/lecture/lecture.Rmd">cours</a></p>
<p><strong>Manipulation de données spatiales, présentations cartographiques (14h-17h)</strong> Kim Antunez et Étienne Côme<br />
<a href="cartographie/ecka/lecture/lecture.Rmd">script R</a></p>
<a href="github.com/antuki">Kim Antunez</a> (<a href="https://github.com/">github</a>) et <a href="https://www.comeetie.fr/">Étienne Côme</a> (<a href="https://github.com/comeetie">github</a>)<br />
scripts R : <a href="cartographie/ecka/installations_packages.R">installation</a> <a href="cartographie/ecka/lecture/">cours</a></p>
<p><strong>Manipulation de données spatiales, présentations cartographiques (14h-17h)</strong><br />
Kim Antunez et Étienne Côme<br />
<a href="cartographie/ecka/lecture/">cours</a></p>
<h3 id="jeudi-1er-juillet-1">Jeudi 1er juillet :</h3>
<p><strong>Exercices de mise en pratique sur R (9h-12h)</strong><br />
<a href="cartographie/ecka/exercises/exercises.Rmd">script R</a></p>
<a href="cartographie/ecka/exercises/">script R</a></p>
<p><strong>Utilisation d’un logiciel de SIG : QGIS (14h-17h)</strong><br />
Juliette Morel<br />
<a href="cartographie/jmorel/exo1_QGIS.md">exercices 1</a> <a href="cartographie/jmorel/exo2_QGIS.md">exercices 2</a></p>
......@@ -82,5 +77,5 @@ Juliette Morel<br />
Thomas Soubiran<br />
<a href="cartographie/postgis/postgis.pdf">présentation</a> <a href="cartographie/postgis/R/">scripts R</a></p>
<p><strong>Visualisation dynamique de données spatiales(14h-17h)</strong><br />
<a href="https://bmericskay.github.io/portfolio/about.html">Boris Mericskay</a><br />
<a href="">présentation</a></p>
<a href="https://perso.univ-rennes2.fr/boris.mericskay">Boris Mericskay</a> <a href="https://github.com/bmericskay/">github</a><br />
<a href="cartographie/geoviz/">présentation</a></p>
......@@ -7,13 +7,12 @@ Nous remercions les intervenantes et intervenants de nous avoir permis de mettre
Ces contenus sont diffusés sous licence XXX sauf mention contraire dans le répertoire correspondant.
## Module nᵒ 1 : Traitement quantitatif de données textuelles : nettoyage, exploration, analyse
## Module nᵒ 1 : Traitement quantitatif de données textuelles nettoyage, exploration, analyse
Module organisé par [Julien Boelaert](https://pro.univ-lille.fr/julien-boelaert) et [Samuel Coavoux](https://www.centre-max-weber.fr/Samuel-Coavoux)
----
*Note :* les données utilisées se trouvent dans le répertoire [données](analyse-textuelle/données/)
----
**Note :** les données utilisées se trouvent dans le répertoire [données](analyse-textuelle/données/)
### Lundi 28 juin
......@@ -28,11 +27,11 @@ Julien Boelaert
**Enjeux et évolutions récentes du traitement quantitatif des données textuelles (9h-12h)**
[Sylvain Parasie](https://sylvainparasie.org)
[présentation](analyse-textuelle/sparaisie/Parasie_Enjeux et évolutions récentes du traitement quantitatif des données textuelles (29juin21).pdf)
[présentation](analyse-textuelle/sparaisie/analyse-textuelle/sparaisie/Parasie_Enjeux%20et%20évolutions%20récentes%20du%20traitement%20quantitatif%20des%20données%20textuelles%20(29juin21).pdf)
**Expressions régulières : recherche, nettoyage, mise en forme de corpus (14h-17h)**
Julien Boelaert
[présentation]()
[présentation](analyse-textuelle/jboelaert/QL21-Regex.pdf)
[script R](analyse-textuelle/jboelaert/TD/TD2-Regex-énoncé.R) [script R](analyse-textuelle/jboelaert/TD/TD2-Regex.R)
### Mercredi 30 juin :
......@@ -80,7 +79,7 @@ PUDL
_Avanies et organisation administrative française_ Thomas Soubiran
[présentation](cartographie/table-ronde/qtll2021--orga-fr.pdf)
_La Base adresse nationale_ Jérôme Desboeufs (etalab)
_La Base adresse nationale_ Jérôme Desboeufs ([etalab](https://www.etalab.gouv.fr/author/jerome-desboeufs))
[présentation](cartographie/table-ronde/ban.pdf)
_API Géo_
......@@ -94,22 +93,22 @@ _API Géo_
**Introduction à R (14h-17h)**
Cécile Rodrigues
[scripts R]()
[scripts R](cartographie/intro-r)
### Mercredi 30 juin :
**Nettoyage de données, géo-encodage (9h-12h)**
[Kim Antunez](github.com/antuki) ([github](https://github.com/)) et [Étienne Côme]() ([github](https://github.com/comeetie))
scripts R : [installation](cartographie/ecka/installations_packages.R) [cours](cartographie/ecka/lecture/lecture.Rmd)
[Kim Antunez](github.com/antuki) ([github](https://github.com/)) et [Étienne Côme](https://www.comeetie.fr/) ([github](https://github.com/comeetie))
scripts R : [installation](cartographie/ecka/installations_packages.R) [cours](cartographie/ecka/lecture/)
**Manipulation de données spatiales, présentations cartographiques (14h-17h)**
Kim Antunez et Étienne Côme
[script R](cartographie/ecka/lecture/lecture.Rmd)
[cours](cartographie/ecka/lecture/)
### Jeudi 1er juillet :
**Exercices de mise en pratique sur R (9h-12h)**
[script R](cartographie/ecka/exercises/exercises.Rmd)
[script R](cartographie/ecka/exercises/)
**Utilisation d’un logiciel de SIG : QGIS (14h-17h)**
Juliette Morel
......@@ -122,5 +121,5 @@ Thomas Soubiran
[présentation](cartographie/postgis/postgis.pdf) [scripts R](cartographie/postgis/R/)
**Visualisation dynamique de données spatiales(14h-17h)**
[Boris Mericskay](https://bmericskay.github.io/portfolio/about.html)
[présentation]()
[Boris Mericskay](https://perso.univ-rennes2.fr/boris.mericskay) [github](https://github.com/bmericskay/)
[présentation](cartographie/geoviz/)
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
# Introduction à la géovisualisation de données
> Quantille 2021 / Module Cartographie
## Introduction
![](https://i.imgur.com/Ijlnf4f.png)
[Télécharger le PDF](https://raw.githubusercontent.com/bmericskay/Quantilille/master/Visualisation%20de%20donn%C3%A9es%20spatiales%20sur%20le%20Web.pdf)
## Mise en pratique
![](https://i.imgur.com/4PMrVSI.png)
> https://kepler.gl/
> https://studio.unfolded.ai/home pour profiter de KeplerGL en mode SaaS
## Les données
* [Communes de Bretagne](https://github.com/bmericskay/Quantilille/blob/master/Data/1_CommunesBZH.geojson)
* [Départements de Bretagne](https://github.com/bmericskay/Quantilille/blob/master/Data/DepartementsBZH.geojson)
* [DVF Rennes Métropole](https://github.com/bmericskay/Quantilille/blob/master/Data/DVFRM.geojson)
* [DVF Paris 2019](https://github.com/bmericskay/Quantilille/blob/master/Data/5_DVF_Paris_2017.geojson)
* [Airbnb Paris](https://github.com/bmericskay/Quantilille/blob/master/Data/AirbnbParis.csv)
* [Bâtiments de Rennes](https://github.com/bmericskay/Quantilille/blob/master/Data/Bati_Rennes.geojson)
* [Lignes de métros de Rennes](https://github.com/bmericskay/Quantilille/blob/master/Data/metropolygon.geojson)
* [Trajets Blablacar 24 août](https://github.com/bmericskay/Quantilille/blob/master/Data/7_24aout_trajetsgrandesvilles.geojson)
* [Traces GPS Oiseaux](https://github.com/bmericskay/Quantilille/blob/master/Data/Traces_Oiseaux.csv)
---
title: "DVF"
author: "Boris Mericskay"
date: "30/06/2021"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## R Markdown
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>.
When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
```{r cars}
library(tidyverse)
```
## Including Plots
### Selection des transactions de type 'Ventes' de 'Maison' et 'Appartement'
```{r cars}
etape1 <- DVF %>% filter(nature_mutation == "Vente")
etape1bis <- etape1 %>% filter(type_local == "Maison" | type_local == "Appartement")
```
### Selection et renommage des variables
```{r cars}
etape2 <- etape1bis %>% select(id = id_mutation, disposition = numero_disposition, parcelle= id_parcelle, date = date_mutation, nature = nature_mutation, codecommune = code_commune, departement = code_departement, type = type_local, surface = surface_reelle_bati, piece = nombre_pieces_principales, prix = valeur_fonciere, latitude, longitude)
```
### Remplacement des cellules vides par des NA et suppression des NA
```{r cars}
etape2[etape2==""] <- NA
etape3 <- etape2 %>% na.omit()
```
You can also embed plots, for example:
```{r pressure, echo=FALSE}
plot(pressure)
```
Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot.
File added
Creative Commons Legal Code
CC0 1.0 Universal
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
HEREUNDER.
Statement of Purpose
The laws of most jurisdictions throughout the world automatically confer
exclusive Copyright and Related Rights (defined below) upon the creator
and subsequent owner(s) (each and all, an "owner") of an original work of
authorship and/or a database (each, a "Work").
Certain owners wish to permanently relinquish those rights to a Work for
the purpose of contributing to a commons of creative, cultural and
scientific works ("Commons") that the public can reliably and without fear
of later claims of infringement build upon, modify, incorporate in other
works, reuse and redistribute as freely as possible in any form whatsoever
and for any purposes, including without limitation commercial purposes.
These owners may contribute to the Commons to promote the ideal of a free
culture and the further production of creative, cultural and scientific
works, or to gain reputation or greater distribution for their Work in
part through the use and efforts of others.
For these and/or other purposes and motivations, and without any
expectation of additional consideration or compensation, the person
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
is an owner of Copyright and Related Rights in the Work, voluntarily
elects to apply CC0 to the Work and publicly distribute the Work under its
terms, with knowledge of his or her Copyright and Related Rights in the
Work and the meaning and intended legal effect of CC0 on those rights.
1. Copyright and Related Rights. A Work made available under CC0 may be
protected by copyright and related or neighboring rights ("Copyright and
Related Rights"). Copyright and Related Rights include, but are not
limited to, the following:
i. the right to reproduce, adapt, distribute, perform, display,
communicate, and translate a Work;
ii. moral rights retained by the original author(s) and/or performer(s);
iii. publicity and privacy rights pertaining to a person's image or
likeness depicted in a Work;
iv. rights protecting against unfair competition in regards to a Work,
subject to the limitations in paragraph 4(a), below;
v. rights protecting the extraction, dissemination, use and reuse of data
in a Work;
vi. database rights (such as those arising under Directive 96/9/EC of the
European Parliament and of the Council of 11 March 1996 on the legal
protection of databases, and under any national implementation
thereof, including any amended or successor version of such
directive); and
vii. other similar, equivalent or corresponding rights throughout the
world based on applicable law or treaty, and any national
implementations thereof.
2. Waiver. To the greatest extent permitted by, but not in contravention
of, applicable law, Affirmer hereby overtly, fully, permanently,
irrevocably and unconditionally waives, abandons, and surrenders all of
Affirmer's Copyright and Related Rights and associated claims and causes
of action, whether now known or unknown (including existing as well as
future claims and causes of action), in the Work (i) in all territories
worldwide, (ii) for the maximum duration provided by applicable law or
treaty (including future time extensions), (iii) in any current or future
medium and for any number of copies, and (iv) for any purpose whatsoever,
including without limitation commercial, advertising or promotional
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
member of the public at large and to the detriment of Affirmer's heirs and
successors, fully intending that such Waiver shall not be subject to
revocation, rescission, cancellation, termination, or any other legal or
equitable action to disrupt the quiet enjoyment of the Work by the public
as contemplated by Affirmer's express Statement of Purpose.
3. Public License Fallback. Should any part of the Waiver for any reason
be judged legally invalid or ineffective under applicable law, then the
Waiver shall be preserved to the maximum extent permitted taking into
account Affirmer's express Statement of Purpose. In addition, to the
extent the Waiver is so judged Affirmer hereby grants to each affected
person a royalty-free, non transferable, non sublicensable, non exclusive,
irrevocable and unconditional license to exercise Affirmer's Copyright and
Related Rights in the Work (i) in all territories worldwide, (ii) for the
maximum duration provided by applicable law or treaty (including future
time extensions), (iii) in any current or future medium and for any number
of copies, and (iv) for any purpose whatsoever, including without
limitation commercial, advertising or promotional purposes (the
"License"). The License shall be deemed effective as of the date CC0 was
applied by Affirmer to the Work. Should any part of the License for any
reason be judged legally invalid or ineffective under applicable law, such
partial invalidity or ineffectiveness shall not invalidate the remainder
of the License, and in such case Affirmer hereby affirms that he or she
will not (i) exercise any of his or her remaining Copyright and Related
Rights in the Work or (ii) assert any associated claims and causes of
action with respect to the Work, in either case contrary to Affirmer's
express Statement of Purpose.
4. Limitations and Disclaimers.
a. No trademark or patent rights held by Affirmer are waived, abandoned,
surrendered, licensed or otherwise affected by this document.
b. Affirmer offers the Work as-is and makes no representations or
warranties of any kind concerning the Work, express, implied,
statutory or otherwise, including without limitation warranties of
title, merchantability, fitness for a particular purpose, non
infringement, or the absence of latent or other defects, accuracy, or
the present or absence of errors, whether or not discoverable, all to
the greatest extent permissible under applicable law.
c. Affirmer disclaims responsibility for clearing rights of other persons
that may apply to the Work or any use thereof, including without
limitation any person's Copyright and Related Rights in the Work.
Further, Affirmer disclaims responsibility for obtaining any necessary
consents, permissions or other rights required for any use of the
Work.
d. Affirmer understands and acknowledges that Creative Commons is not a
party to this document and has no duty or obligation with respect to
this CC0 or use of the Work.
Version: 1.0
RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default
EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8
RnwWeave: Sweave
LaTeX: pdfLaTeX
# quantilille21_intror
Ecole d'été en méthodes quantitatives pour les sciences sociales, module cartographie, introduction à R/RStudio et {tidyverse}
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment