creave data mining - ia · creave data mining lecture 02: intro to rstudio and clustering 29...

16
Crea%ve Data Mining Lecture 02: Intro to RStudio and Clustering 29 February 2016 Danielle Griego, [email protected] MaGhias Standfest, [email protected]

Upload: others

Post on 18-Aug-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Creave Data Mining - iA · Creave Data Mining Lecture 02: Intro to RStudio and Clustering 29 February 2016 Danielle Griego, griegod@ethz.ch Mahias Standfest, standfest@arch.ethz.ch

Crea%veDataMining

Lecture02:IntrotoRStudioandClustering29February2016

DanielleGriego,[email protected],[email protected]

Page 2: Creave Data Mining - iA · Creave Data Mining Lecture 02: Intro to RStudio and Clustering 29 February 2016 Danielle Griego, griegod@ethz.ch Mahias Standfest, standfest@arch.ethz.ch

•  HW1:Sharewhatyouhavelearnedabouturbandatamining(20min)

•  Break(10min)•  Rtutorial(60min)

Whatwe’llcovertoday:

Page 3: Creave Data Mining - iA · Creave Data Mining Lecture 02: Intro to RStudio and Clustering 29 February 2016 Danielle Griego, griegod@ethz.ch Mahias Standfest, standfest@arch.ethz.ch

1. Install R from http://cran.r-project.org/ 2. Install RStudio from http://www.rstudio.com/products/rstudio/download/ 3. Research other examples of urban data mining and make 3 slides about the most interesting project/application/resarch group(s) that you find. Will be presented at the beginning of next lecture.

Homework_1

Page 4: Creave Data Mining - iA · Creave Data Mining Lecture 02: Intro to RStudio and Clustering 29 February 2016 Danielle Griego, griegod@ethz.ch Mahias Standfest, standfest@arch.ethz.ch

ADJUSTCOLORS

CREATIVE DATA MINING Intuitively Analysing Design Ideas

Page 5: Creave Data Mining - iA · Creave Data Mining Lecture 02: Intro to RStudio and Clustering 29 February 2016 Danielle Griego, griegod@ethz.ch Mahias Standfest, standfest@arch.ethz.ch

OVERVIEWlecture_2.R

CREATIVE DATA MINING Intuitively Analysing Design Ideas

Page 6: Creave Data Mining - iA · Creave Data Mining Lecture 02: Intro to RStudio and Clustering 29 February 2016 Danielle Griego, griegod@ethz.ch Mahias Standfest, standfest@arch.ethz.ch

IRISDATASET(1936)en.wikipedia.org/wiki/Iris_flower_data_set

CREATIVE DATA MINING Intuitively Analysing Design Ideas

Page 7: Creave Data Mining - iA · Creave Data Mining Lecture 02: Intro to RStudio and Clustering 29 February 2016 Danielle Griego, griegod@ethz.ch Mahias Standfest, standfest@arch.ethz.ch

VIEWPREINSTALLEDDATAFRAMElecture_2_00.R

CREATIVE DATA MINING Intuitively Analysing Design Ideas

Page 8: Creave Data Mining - iA · Creave Data Mining Lecture 02: Intro to RStudio and Clustering 29 February 2016 Danielle Griego, griegod@ethz.ch Mahias Standfest, standfest@arch.ethz.ch

SAVEANDREADDATAlecture_2_01.R

CREATIVE DATA MINING Intuitively Analysing Design Ideas

Page 9: Creave Data Mining - iA · Creave Data Mining Lecture 02: Intro to RStudio and Clustering 29 February 2016 Danielle Griego, griegod@ethz.ch Mahias Standfest, standfest@arch.ethz.ch

USEONLYPARTSOFTHEDATAlecture_2_02.R

CREATIVE DATA MINING Intuitively Analysing Design Ideas

Page 10: Creave Data Mining - iA · Creave Data Mining Lecture 02: Intro to RStudio and Clustering 29 February 2016 Danielle Griego, griegod@ethz.ch Mahias Standfest, standfest@arch.ethz.ch

DATAFRAMEANDMATRIXlecture_2_03.R

CREATIVE DATA MINING Intuitively Analysing Design Ideas

Page 11: Creave Data Mining - iA · Creave Data Mining Lecture 02: Intro to RStudio and Clustering 29 February 2016 Danielle Griego, griegod@ethz.ch Mahias Standfest, standfest@arch.ethz.ch

ADDITIONALSTUFFlecture_2_04.R

CREATIVE DATA MINING Intuitively Analysing Design Ideas

Page 12: Creave Data Mining - iA · Creave Data Mining Lecture 02: Intro to RStudio and Clustering 29 February 2016 Danielle Griego, griegod@ethz.ch Mahias Standfest, standfest@arch.ethz.ch

Schedule

Page 13: Creave Data Mining - iA · Creave Data Mining Lecture 02: Intro to RStudio and Clustering 29 February 2016 Danielle Griego, griegod@ethz.ch Mahias Standfest, standfest@arch.ethz.ch

Homework: 1.  Review the R-tutorials lecture_2_00 through lecture_2_04 2.  Complete HW_2 3.  Optional: Review how to export images from maps.stamen.com according to the tutorial on the

next pages. We will prepare the street maps for the next course exercise, but this is one method to create an image database for clustering analysis in the first block.

CREATIVE DATA MINING Intuitively Analysing Design Ideas

Page 14: Creave Data Mining - iA · Creave Data Mining Lecture 02: Intro to RStudio and Clustering 29 February 2016 Danielle Griego, griegod@ethz.ch Mahias Standfest, standfest@arch.ethz.ch

ZOOM UNTIL YOU CAN READ 17 IN HERE

Picture size 2000 x 2000 px

Finally click „make“

Adjust the yellow frame so It fills almost the whole screen

Page 15: Creave Data Mining - iA · Creave Data Mining Lecture 02: Intro to RStudio and Clustering 29 February 2016 Danielle Griego, griegod@ethz.ch Mahias Standfest, standfest@arch.ethz.ch

click the link here

Page 16: Creave Data Mining - iA · Creave Data Mining Lecture 02: Intro to RStudio and Clustering 29 February 2016 Danielle Griego, griegod@ethz.ch Mahias Standfest, standfest@arch.ethz.ch

download the image with a meaningful name (e.g. „ETHhoenggerberg.png“)