title: R - Print specific country names in a map using rworldmap
body: <p>I am creating a heatmap using the map of Europe in rworldmap package in R (since I don't know how to do this with ggmap or ggplot2). </p>
  
  <p>I need to plot the country names of the countries that are present in my dataframe only, not all european countries. How can I do this?
  My code:</p>
  
  <pre><code>library(RColorBrewer)
  #getting colours
  colourPalette &lt;- brewer.pal(5,'RdPu')
  
  
  library(rworldmap)
  
  europe &lt;- data.frame(
    "country" = c("Greece", 
                  "France", 
                  "Spain",
                  "Italy",
                  "UK",
                  "Finland","Norway","Sweden",
                  "Germany",
                  "Romania"), 
    "x" = c(2.5, 3, 2.2, 1.8,2.32, 1.99, 2.01, 2.34, 1.88, 2.45))
  
  matched &lt;- joinCountryData2Map(europe, joinCode="NAME", nameJoinColumn="country")
  
  
  
  
  
  mapParams &lt;- mapCountryData(matched, 
                              nameColumnToPlot="x", 
                              mapTitle="my Titley", 
                              addLegend=FALSE,
                              mapRegion="Europe"
                              ,colourPalette=colourPalette,
                              oceanCol="#404040", missingCountryCol="#A0A0A0")
  
  
  
  #adding legend
  do.call(addMapLegend
          ,c(mapParams
             ,legendLabels="all"
             ,legendWidth=0.5
             ,legendIntervals="data"
             ,legendMar = 2))
  
  labelCountries()
  </code></pre>
  
  <p>Using <code>labelCountries()</code> prints all country names and it's not readable.</p>
  
  <p>Thanks</p>