Make beautiful world maps in RStudio | R programming

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ต.ค. 2024

ความคิดเห็น • 24

  • @jaimiestrickland4052
    @jaimiestrickland4052 ปีที่แล้ว

    This was super helpful, thank you!! This was my first time working with maps and you made it very doable.

    • @FelixAnalytix
      @FelixAnalytix  11 หลายเดือนก่อน

      Thanks for your comment. Happy to know this tutorial was useful for you :)

  • @AP-yx1mm
    @AP-yx1mm 2 ปีที่แล้ว +2

    Hi thank you so much for this very good video! It is fantastic!
    Btw what if I say should plot supra-national entities, EU, ASEAN or Mercosur etc....?

    • @FelixAnalytix
      @FelixAnalytix  2 ปีที่แล้ว +1

      Thank you very much for your support!
      One way to do it would be to add a `supranational` column with the categories "EU", ASEAN", "Mercosur", etc...
      Below an example to plot a world map with a `region` column, where each region has a different color. (I added this R code at the end of the R script accessible from my GitHub account). I hope this helps :)
      ```r
      countries_by_region %
      select(geometry, name, iso_a3) %>%
      left_join(countrycode::codelist %>%
      distinct(region, iso3c), by = c("iso_a3" = "iso3c")) %>%
      filter(region != "Antartica")
      world %>%
      filter(admin != "Antarctica") %>%
      st_transform(crs = "+proj=robin") %>%
      ggplot() +
      geom_sf(color = "darkgrey") +
      geom_sf(data = countries_by_region, aes(fill = region)) +
      #scale_fill_manual(values = "royalblue") +
      theme_minimal() +
      theme(plot.title = element_text(face = "bold"),
      axis.text.x = element_blank(),
      legend.position = "none") +
      labs(title = "Countries by region",
      x = NULL, y = NULL,
      caption = "FelixAnalytix.com")
      ```

    • @FelixAnalytix
      @FelixAnalytix  ปีที่แล้ว

      I just published a new video showing how to do just that: th-cam.com/video/KZcKv3HgzII/w-d-xo.html

  • @mauromanuel99
    @mauromanuel99 ปีที่แล้ว +1

    Definetively great video!
    I was wondering If I there is a way to make the same as you did with ISO 3 classification but with NUTS2 in Europe?

    • @FelixAnalytix
      @FelixAnalytix  ปีที่แล้ว

      Yes, you can try using the {eurostat} R package.

  • @FelixAnalytix
    @FelixAnalytix  2 ปีที่แล้ว +2

    You can get the R code as well as the jamesbond CSV file of this tutorial by joining my newsletter on felixanalytix.com. Once you confirmed your subscription, you will receive an automatic email from me with my GitHub repository URL where you can download the R script and the data showed in the video.

  • @rajpopat2099
    @rajpopat2099 2 ปีที่แล้ว

    You are doing a great job pls keep sharing
    Regards
    Raaj

  • @hamiddarabi5237
    @hamiddarabi5237 ปีที่แล้ว +1

    Hi, thanks for your nice and useful video, unfortunately, I couldn't get the script even thought after subscribing and confirmation of my email!!!

    • @FelixAnalytix
      @FelixAnalytix  ปีที่แล้ว

      Thank you for your message. Please be sure that the confirmation email is not in your email Spam folder. I had a feedback that gmail put the emails from my newsletter in the Spam folder...

  • @jamesleleji9470
    @jamesleleji9470 2 ปีที่แล้ว +1

    Can R do what ArcGIS does? Thanks

    • @FelixAnalytix
      @FelixAnalytix  2 ปีที่แล้ว

      Thank you for your question. R can do a lot of things related to mapping. Do you have a specific usecase in mind?

    • @haraldurkarlsson1147
      @haraldurkarlsson1147 2 ปีที่แล้ว +1

      I believe it can do most things ArcGIS does and the fact that many geographers use R is a testament to that. The great advantage of R is that is it free whereas ArcGIS is commercial and expensive.

    • @jamesleleji9470
      @jamesleleji9470 2 ปีที่แล้ว

      @@FelixAnalytix I want to map the location of farmers reached based on the sector they operate - cocoa, palm oil, etc. Is it also possible to show their annual result and/or growth rate

    • @FelixAnalytix
      @FelixAnalytix  2 ปีที่แล้ว

      @@jamesleleji9470 Yes, it is something that can be done using R.

  • @ednahdindi
    @ednahdindi 2 ปีที่แล้ว +1

    Hello Felix, a new subscriber here still waiting for the automatic email. I need the source code and CSV file please

    • @FelixAnalytix
      @FelixAnalytix  2 ปีที่แล้ว

      Hello Fitness by Medina,
      Thank you very much for your message and for your subscription!
      You should have received the automatic email very quickly after having confirmed your subscription by email. Have you checked your spam?

    • @azharulislam4975
      @azharulislam4975 ปีที่แล้ว

      @@FelixAnalytix
      There is nothing in your GitHub

    • @FelixAnalytix
      @FelixAnalytix  ปีที่แล้ว

      @@azharulislam4975 on my GitHub account you should open the "TH-cam" repository. You will find there all the R scripts of the video tutorials.

  • @sdirimarwah8383
    @sdirimarwah8383 2 ปีที่แล้ว +1

    Please shape files for Africa
    Thank you so much

    • @FelixAnalytix
      @FelixAnalytix  ปีที่แล้ว

      Thank you for your message. You don't need the shape files for Africa as they are downloaded using the {rnaturalearth} R package

  • @RaviVerma-uo3hs
    @RaviVerma-uo3hs 2 ปีที่แล้ว

    can i get a link of jamesbond csv file link

    • @FelixAnalytix
      @FelixAnalytix  2 ปีที่แล้ว

      Thanks for your question. After signing up for my newsletter on www.felixanalytix.com, you will receive an automatic email from me with the link to my GitHub repository where you can access the jamesbond CSV file (as well as the R code of this video, and all the R scripts of my other TH-cam videos).
      Yes, I know, an unashamed way to promote my videos 😉 (but you can always unsubscribe from my newsletter anytime).