Questions tagged [tmap]

tmap is an actively maintained open-source R-library for drawing thematic maps, written by Martijn Tennekes. The API is based on the Layered Grammar of Graphics, and resembles the syntax of ggplot2, a popular R-library for drawing charts.

tmap is an actively maintained open-source R-library for drawing thematic maps, written by Martijn Tennekes. The API is based on A Layered Grammar of Graphics by Hadley Wickham and resembles the syntax of , a popular R-library for drawing charts.

Repositories

Vignette

Presentation

Other resources

487 questions
0
votes
1 answer

the transformation of timestamp to get date in Talend

I try to get the values from this format of Date YYYYMMDDhhmmss. I applied this functions in the component of tMap TalendDate.formatDate ("YYYY", TalendDate.parseDate ("YYYYMMDDhhmmss",row1.COLUMN5)) . I get the result from the year , hours, minutes…
hbnisea
  • 29
  • 1
  • 6
0
votes
0 answers

Error when displaying nearest neighbors analysis with tmap

I would like to use the tmap library to display my nearest neighbour analysis above. My code is below with a simple plot function to create the map attached but like I said i want to display this using tmap #Identify the tract centroids …
utuko
  • 1
  • 1
0
votes
1 answer

How to solve some countries missing and misplaced issue in tmap?

I made a population density map with tmap package. However after merging my own data to the World@data in tmap, I found USA in my map is missing, and Vietnam data was misplaced in the place of USA. Rwanda in place of Russia. Checked the merged data,…
HW-Scientist
  • 394
  • 2
  • 7
  • 20
0
votes
1 answer

how to set constant manual palette in tmap

the piece of code below shows my problem library(rgdal) library(RColorBrewer) library(tmap) library(maptools) data(Europe) first <- c("a", "a", "a", "d", "d", "d", "c", "c", "c", "c") second <- c("c", "c", "c", "d", "d", "d", "d", "e", "e", "e") kod…
Glomek
  • 71
  • 7
0
votes
2 answers

tmap: how to apply formatting to numeric labels on small multiples choropleths

I am plotting small multiples, one for each competitor, with tmap. I am getting multiple choropleth maps of Poland divided into counties, colored by sales values, like ggplot facet_wrap). First I appended data to a shp file and had each competitor…
Jacek Kotowski
  • 620
  • 16
  • 49
0
votes
0 answers

Customize ggmap() legend background

In the code below, is it possible to make the legend background semi-transparent? I cannot pass analphavalue toelement_rect()inlegend.backgroundorlegend.box.backgroundto do this. As an example,tm_layout()intmappackage can do this with…
Manojit
  • 611
  • 1
  • 8
  • 18
0
votes
1 answer

How to capture rejected records in talend

I have two tables called Product and Transactions. In Product 19 records are there and in Transaction 21 records are there. I am trying to get the matched records from both the tables using of Tmap (inner join). I am able to load the matched records…
Naresh AR
  • 69
  • 2
  • 12
0
votes
1 answer

How to map different columns of ONE table into ONE column of ONE table using Talend

I have one table with different columns. The columns belong to an Id, x and y. I would like to map those columns into One unique ID, X and Y using talend: I have a connection to my DB from MySQL to Talend. Im adding my table as a…
John Perez
  • 117
  • 10
0
votes
2 answers

talend: The operator == is undefined for the argument type(s) boolean

I want to copy the data from table1 of database db1 to table2 of database db2 using talend. I created a job like presented in the following the two tables has the same schema : table packaging_method id : bigint code : varchar …
blue
  • 525
  • 1
  • 8
  • 20
0
votes
1 answer

How to change legend position using qtm() in the tmap package

I have created a map of london showing a crime figures. As you can see from my image below - my legend is in a awkward place - i'd prefer it to be on the bottom left or right? anyone know how I could possibly do this. My code that I have created the…
bootz123
  • 11
  • 2
  • 4
0
votes
1 answer

How to create a map with time series from a wide df using tmap

I would like to create a map (or, better, a series of maps) representing how population has evolved through time. For the sake of clarity I will be using tmap's built in metro sample data. library(tmap) data("World", "metro") >…
ccamara
  • 1,141
  • 1
  • 12
  • 32
0
votes
1 answer

tMap from two tSetGlobalVar

I have two tSetGlobalVar in which I store two different columns. NB_DNCL_OLD and NB_DNCL_NEW. I am trying to connect them to a tMap component in order to have a single table as output, adding an expression for the difference between both integer…
Aline
  • 11
  • 6
0
votes
1 answer

How to join Spatial data with Dataframe so it can be displayed with Tmap?

Short version: when executing the following command qtm(World, "amount") I get the following error message: Error in $<-.data.frame(*tmp*, "SHAPE_AREAS", value = c(653989.801201595, : replacement has 177 rows, data has 175 Disclaimer: this…
ccamara
  • 1,141
  • 1
  • 12
  • 32
0
votes
0 answers

how to check length of string using tmap in Talend

I am trying to check the length of a string using mystring.length() in tmap component of Talend. However, I am encountering an error Type mismatch: cannot convert from boolean to String. The fields: Input port: string 50 output port: integer…
0
votes
1 answer

Tmap Error - replacement has [x] rows, data has [y]

Short version: when executing the following command qtm(countries, "freq") I get the following error message: Error in $<-.data.frame(*tmp*, "SHAPE_AREAS", value = c(652270.070308042, : replacement has 177 rows, data has 210 Disclaimer: I…
ccamara
  • 1,141
  • 1
  • 12
  • 32