Visualize tree cover loss

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ม.ค. 2025

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

  • @milos-makes-maps
    @milos-makes-maps  ปีที่แล้ว +1

    Hi guys, welcome to my new video! I included the link to the land cover data in the description box!

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

    Fantastic video. I was trying to work on the same data with Python but you dismantled it here. Thank you a lot.

    • @milos-makes-maps
      @milos-makes-maps  ปีที่แล้ว

      I'm happy that this video helped you continue working in R! ☺️

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

    This is another awesome map. Thank you for sharing your knowledge. If you're looking for more ideas, creating a map to identify the land uses of a country could be interesting.

    • @milos-makes-maps
      @milos-makes-maps  ปีที่แล้ว

      Thank you for your kind words! I'm always looking for new ideas so thank you for sharing one with me! Is there a specific dataset on land use that you would like to see in my tutorial?

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

    Hi Milos, thanks for the tutorial but with the current version of R the rgeoboundaries package is no longer being used. How do I go around this any other oackage I can use?

    • @milos-makes-maps
      @milos-makes-maps  ปีที่แล้ว +1

      Hi, that's really annoying! Sorry that you are experiencing issues with the package. An alternative is to use the `raster` package. For example, if you wish to download level 2 administrative boundaries for Slovenia you can run:
      country_sf

  • @БехзодАдилов
    @БехзодАдилов ปีที่แล้ว +1

    Its great

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

    Hey Milos, thank you for the insightful video. I encountered the error below using R Studio and Rstudio cloud:
    Warning in install.packages :
    package ‘rgeoboundaries’ is not available for this version of R
    As a result I could not create the object "country_sf". Could you have a solution?

    • @milos-makes-maps
      @milos-makes-maps  ปีที่แล้ว

      Hi Joshua, that's a bummer. I haven't encountered this error yet. But an alternative is to use the `raster` package. For example, if you wish to download level 2 administrative boundaries for Slovenia you can run:
      country_sf

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

      @@milos-makes-maps seemed to have solved the issue but I encountered another error when I tried to run the code: for (raster in raster_files) {
      This is the error message I got
      "Cannot preload entire working area of 397357488 cells with max_cells_in_memory = 3e+07. Raster values will be read for each feature individually
      | | 0%Error in `[.data.frame`(x, i, j, drop = drop) :
      undefined columns selected
      In addition: Warning message:
      In .exact_extract(x, sf::st_as_sf(y), ...) :
      Polygons transformed to raster CRS (EPSG:32633)"

    • @milos-makes-maps
      @milos-makes-maps  ปีที่แล้ว

      You have to change the column name for admin level 2 because you are using `raster` instead of `rgeoboundaries`. Currently, it's `shapeName` but you should inspect `country_sf` to find the new name

  • @usamatewari
    @usamatewari 2 หลายเดือนก่อน +1

    Can it be done for small area

    • @milos-makes-maps
      @milos-makes-maps  2 หลายเดือนก่อน

      Yes, of course, this tutorial is for small areas

    • @usamatewari
      @usamatewari 2 หลายเดือนก่อน

      @@milos-makes-maps I will be glad if you provide me with assistance when I got stuck

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

    Hi Milos,
    This is very helpful. I wanted to try myself, however i encountered error
    > country_sf

    • @milos-makes-maps
      @milos-makes-maps  ปีที่แล้ว +1

      Hello @humanist6256, I'm glad you found this helpful. 😊
      It seems that you are getting an error because you are using an older version of the rgeoboundaries package. The current version is 0.1.0, which has a different syntax for the gb_adm2 function. You need to specify the country argument as a named parameter, like this:
      country_sf

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

      @@milos-makes-maps Thank you for prompt response.
      I tried as per your suggestions, I installed the package. With no success :( May be I am missing something basic.
      ----------------------------------------------------------------------------------------------------------------
      > country_sf country_sf

    • @milos-makes-maps
      @milos-makes-maps  ปีที่แล้ว

      @@humanist6256 hmmm, and what is the version of rgeoboundaries that you have installed?