Plot.plot({
grid: true,
marginLeft: 50,
marginTop: 50,
marginRight: 50,
color: {
type: 'categorical',
scheme: 'set2'
},
marks: [
Plot.dot(data_mun, {
x: 'Perc_TuristicHousehols',
y: 'Income_Person',
fill: 'province'
}),
Plot.text(data_mun, {
filter: d => d.Perc_TuristicHousehols >= 15 || d.Income_Person >= 20000,
x: 'Perc_TuristicHousehols',
y: 'Income_Person',
text: 'Municipality',
title: d => `${d.Municipality}`,
dy: -8
})
]
})