SlideShare a Scribd company logo
Создание картограмм на принципах
      грамматики графики
   С помощью R-расширения ggmap

       Александр Матрунич
24 района Псковской области
> ggplot(data,
aes(x =
area_km2, y =
population_201
0)) +
geom_point()
> ggplot(data,
aes(x =
area_km2, y =
population_2010
)) +
geom_point()

> ggplot(data,
aes(x =
area_km2, y =
population_2010
)) +
stat_identity()
> ggplot(data,
aes(x =
area_km2, y =
population_2010
)) +
stat_identity()

> ggplot(data,
aes(area_km2,
population_2010
)) +
geom_point()
> ggplot(data,
aes(area_km2,
population_2010
)) +
geom_point()

>
qplot(area_km2,
population_2010
, data = data,
geom = 'point')
> ggplot(data,
aes(area_km2,
population_2010)
) +
geom_smooth()
> ggplot(data,
aes(area_km2,
population_2010)
) +
geom_smooth()

> ggplot(data,
aes(area_km2,
population_2010)
) +
geom_smooth() +
geom_point()
> ggplot(data,
aes(area_km2,
population_2010))
+ geom_smooth()

> ggplot(data,
aes(area_km2,
population_2010))
+ geom_smooth() +
geom_point()

> ggplot(data,
aes(area_km2,
population_2010,
size =
crop_product)) +
geom_point()
> ggplot(data,
aes(area_km2,
population_2010,
size =
crop_product)) +
geom_point()

> ggplot(data,
aes(area_km2,
population_2010,
size =
crop_product,
color =
retail_mln_rub)) +
 geom_point()
100 прекрасных мертвецов
  tkachi.com/100_prekrasnih_mertvetsov.jsp
> head(builds)
         x        y start_date end_date start_develop2        use1
1 30.29113 59.93009         NA     2006             NA laboratory
2 30.35050 59.91288       1840     2005           2008 residential
3 30.28010 59.92663       1865     2004             NA residential
4 30.38010 59.92752       1878     2005           2007 residential
5 30.29055 59.90604       1902     2007             NA residential
6 30.28252 59.93762       1835     2005           2008 residential
spbmap <-
qmap('Санкт-
Петербург', zoom
= 12, source =
'osm', colour =
'bw')

spbmap +
geom_point(data
= builds, aes(x
= x, y = y,
colour =
start_date, size
= start_date))
spbmap +
geom_point(data
= builds, aes(x
= x, y = y,
colour =
start_date, size
= start_date))

spbmap +
stat_bin2d(data
= builds, aes(x
= x, y = y),
alpha = .5, bins
= 15,
colour='black')
spbmap +
stat_bin2d(data
= builds, aes(x
= x, y = y),
alpha = .5, bins
= 15,
colour='black')

spbmap +
stat_density2d(d
ata = builds,
aes(x = x, y =
y, fill =
..level.., alpha
= ..level..),
geom =
'polygon')
spbmap +
stat_density2d(d
ata = builds,
aes(x = x, y =
y, fill =
..level.., alpha
= ..level..),
geom =
'polygon') +
facet_wrap( ~
use)
Что дальше?
●ggmap: Google как основа
 ● Геокодирование


 ● Маршруты


●ggsubplot
●www.r-project.org
●www.ggplot2.org

●sites.google.com/site/davidkahle/ggmap




Александр Матрунич
www.matrunich.com

More Related Content

PDF
Data visualization with multiple groups using ggplot2
Rupak Roy
 
PDF
Geo Spatial Plot using R
Rupak Roy
 
ZIP
Geohex at Off4g2009
Tadayasu Sasada
 
PDF
Assignment3 solution 3rd_edition
Mysore
 
DOCX
Complex HW
vhiggins1
 
DOCX
G6 m3-c-lesson 17-s
mlabuski
 
PDF
Funções 2
KalculosOnline
 
KEY
Kwp2 091217
Atsushi Tadokoro
 
Data visualization with multiple groups using ggplot2
Rupak Roy
 
Geo Spatial Plot using R
Rupak Roy
 
Geohex at Off4g2009
Tadayasu Sasada
 
Assignment3 solution 3rd_edition
Mysore
 
Complex HW
vhiggins1
 
G6 m3-c-lesson 17-s
mlabuski
 
Funções 2
KalculosOnline
 
Kwp2 091217
Atsushi Tadokoro
 

What's hot (19)

PDF
Geometric Transformations I
Kasun Ranga Wijeweera
 
DOCX
Practica productos notables
Lina Ari
 
PDF
Funções 5
KalculosOnline
 
PDF
Funções 3
KalculosOnline
 
PPTX
R Statistics
DataminingTools Inc
 
PDF
Properties of-graphs-2.5
International advisers
 
PPT
Exponential Functions
acwalk03
 
DOCX
Interpolation graph c++
rpiitcbme
 
KEY
Proga 0518
Atsushi Tadokoro
 
PDF
2 5 2-6 absolute value graphs and translations
dswanstromecasd
 
DOCX
Lista plantão 05 - 8º ano
Prof. Materaldo
 
PDF
CLIM Undergraduate Workshop: Tutorial on R Software - Huang Huang, Oct 23, 2017
The Statistical and Applied Mathematical Sciences Institute
 
PPTX
Square of an Input Number - Digital Logic Design | Lecture 5
JalpaMaheshwari1
 
PPTX
Quadratic equations 7
2IIM
 
PDF
Ejemplograficar
GirolamoSopranis
 
PDF
Day 7 examples u6w14
jchartiersjsd
 
PDF
Fuvest 2021 - fechada
KalculosOnline
 
PDF
Balotario resuelto 2012 1-upla_administración201
Enriguillermo
 
PDF
Htdp27.key
Kyungryul KIM
 
Geometric Transformations I
Kasun Ranga Wijeweera
 
Practica productos notables
Lina Ari
 
Funções 5
KalculosOnline
 
Funções 3
KalculosOnline
 
R Statistics
DataminingTools Inc
 
Properties of-graphs-2.5
International advisers
 
Exponential Functions
acwalk03
 
Interpolation graph c++
rpiitcbme
 
Proga 0518
Atsushi Tadokoro
 
2 5 2-6 absolute value graphs and translations
dswanstromecasd
 
Lista plantão 05 - 8º ano
Prof. Materaldo
 
CLIM Undergraduate Workshop: Tutorial on R Software - Huang Huang, Oct 23, 2017
The Statistical and Applied Mathematical Sciences Institute
 
Square of an Input Number - Digital Logic Design | Lecture 5
JalpaMaheshwari1
 
Quadratic equations 7
2IIM
 
Ejemplograficar
GirolamoSopranis
 
Day 7 examples u6w14
jchartiersjsd
 
Fuvest 2021 - fechada
KalculosOnline
 
Balotario resuelto 2012 1-upla_administración201
Enriguillermo
 
Htdp27.key
Kyungryul KIM
 
Ad

Similar to Создание картограмм на принципах грамматики графики. С помощью R-расширения ggmap (11)

PDF
sexy maps comes to R - ggplot+ google maps= ggmap #rstats
Ajay Ohri
 
PDF
Spatial visualization with ggplot2
Joaquim Silva
 
PDF
VISIALIZACION DE DATA.pdf
Ivan Bautista Fuentes
 
PDF
Data Visualization with ggplot2.pdf
CarlosTrujillo199971
 
PDF
Data visualization-2.1
RenukaRajmohan
 
PDF
The state of geo in ElasticSearch
Fan Robbin
 
PPTX
Ibm slide
AkshatGupta221
 
PDF
Download full ebook of Datacamp Ggplot2 Cheatsheet Itebooks instant download pdf
miatalafeer
 
PPT
Where2.0Now - Finding the heat in Thematic Maps
John Fagan
 
PDF
R workshop iii -- 3 hours to learn ggplot2 series
Vivian S. Zhang
 
PDF
Ggplot
Jhojan Diaz Roa
 
sexy maps comes to R - ggplot+ google maps= ggmap #rstats
Ajay Ohri
 
Spatial visualization with ggplot2
Joaquim Silva
 
VISIALIZACION DE DATA.pdf
Ivan Bautista Fuentes
 
Data Visualization with ggplot2.pdf
CarlosTrujillo199971
 
Data visualization-2.1
RenukaRajmohan
 
The state of geo in ElasticSearch
Fan Robbin
 
Ibm slide
AkshatGupta221
 
Download full ebook of Datacamp Ggplot2 Cheatsheet Itebooks instant download pdf
miatalafeer
 
Where2.0Now - Finding the heat in Thematic Maps
John Fagan
 
R workshop iii -- 3 hours to learn ggplot2 series
Vivian S. Zhang
 
Ad

Recently uploaded (20)

PDF
Blitz Campinas - Dia 24 de maio - Piettro.pdf
fabigreek
 
PPTX
Data Security Breach: Immediate Action Plan
varmabhuvan266
 
PPTX
INFO8116 -Big data architecture and analytics
guddipatel10
 
PPTX
Data-Users-in-Database-Management-Systems (1).pptx
dharmik832021
 
PPTX
Presentation on animal welfare a good topic
kidscream385
 
PPTX
Probability systematic sampling methods.pptx
PrakashRajput19
 
PPTX
Web dev -ppt that helps us understand web technology
shubhragoyal12
 
PPTX
World-population.pptx fire bunberbpeople
umutunsalnsl4402
 
PPTX
IP_Journal_Articles_2025IP_Journal_Articles_2025
mishell212144
 
PDF
blockchain123456789012345678901234567890
tanvikhunt1003
 
PDF
Blue Futuristic Cyber Security Presentation.pdf
tanvikhunt1003
 
PPTX
Future_of_AI_Presentation for everyone.pptx
boranamanju07
 
PPTX
short term internship project on Data visualization
JMJCollegeComputerde
 
PDF
Fundamentals and Techniques of Biophysics and Molecular Biology (Pranav Kumar...
RohitKumar868624
 
PPTX
White Blue Simple Modern Enhancing Sales Strategy Presentation_20250724_21093...
RamNeymarjr
 
PDF
An Uncut Conversation With Grok | PDF Document
Mike Hydes
 
PDF
Key_Statistical_Techniques_in_Analytics_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PPTX
Presentation (1) (1).pptx k8hhfftuiiigff
karthikjagath2005
 
PPTX
lecture 13 mind test academy it skills.pptx
ggesjmrasoolpark
 
PDF
D9110.pdfdsfvsdfvsdfvsdfvfvfsvfsvffsdfvsdfvsd
minhn6673
 
Blitz Campinas - Dia 24 de maio - Piettro.pdf
fabigreek
 
Data Security Breach: Immediate Action Plan
varmabhuvan266
 
INFO8116 -Big data architecture and analytics
guddipatel10
 
Data-Users-in-Database-Management-Systems (1).pptx
dharmik832021
 
Presentation on animal welfare a good topic
kidscream385
 
Probability systematic sampling methods.pptx
PrakashRajput19
 
Web dev -ppt that helps us understand web technology
shubhragoyal12
 
World-population.pptx fire bunberbpeople
umutunsalnsl4402
 
IP_Journal_Articles_2025IP_Journal_Articles_2025
mishell212144
 
blockchain123456789012345678901234567890
tanvikhunt1003
 
Blue Futuristic Cyber Security Presentation.pdf
tanvikhunt1003
 
Future_of_AI_Presentation for everyone.pptx
boranamanju07
 
short term internship project on Data visualization
JMJCollegeComputerde
 
Fundamentals and Techniques of Biophysics and Molecular Biology (Pranav Kumar...
RohitKumar868624
 
White Blue Simple Modern Enhancing Sales Strategy Presentation_20250724_21093...
RamNeymarjr
 
An Uncut Conversation With Grok | PDF Document
Mike Hydes
 
Key_Statistical_Techniques_in_Analytics_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
Presentation (1) (1).pptx k8hhfftuiiigff
karthikjagath2005
 
lecture 13 mind test academy it skills.pptx
ggesjmrasoolpark
 
D9110.pdfdsfvsdfvsdfvsdfvfvfsvfsvffsdfvsdfvsd
minhn6673
 

Создание картограмм на принципах грамматики графики. С помощью R-расширения ggmap