Live Coding: Population Density along the Seine

Поділитися
Вставка
  • Опубліковано 1 лис 2024

КОМЕНТАРІ • 27

  • @camilatotti2843
    @camilatotti2843 Рік тому +1

    Thanks so much for your tutorials, it's been amazing learning 3d viz in R with them!

  • @bassamsaleh8034
    @bassamsaleh8034 Рік тому +1

    like the process and video. amazing work!

  • @pdcoronado
    @pdcoronado Рік тому +1

    Esta increíble, ahora aprender R para generar cartográfia tan hermoso como tus trabajos, te admiro.

  • @arieldome530
    @arieldome530 Рік тому +1

    hello i've been stuck on rasterizing the data and gives me this kind of error: Error in Ops.units(dimensions[[i]]$to, 1) :
    both operands of the expression should be "units" objects

  • @tomcrown_adventure
    @tomcrown_adventure Рік тому +1

    Beautiful stuff! Learning to do something like this seems like an excellent project for those starting out with R visualizations. Thank you :)

  • @burakt
    @burakt Рік тому

    Hi Spencer, It gives the warning --> package ‘MetBrewer’ was built under R version 4.2.3 What should I do.

  • @nikkzm3689
    @nikkzm3689 Рік тому

    Hi,
    I am getting error while I am executing the st_read() for gpkg file of France's population.
    " The source could be corrupt or not supported. See `st_drivers()` for a list of supported formats. "
    Can anyone please tell me how to fix this error? Thank You.

  • @Pongant
    @Pongant 9 місяців тому

    What an amazing package.

  • @la_jeunesse1
    @la_jeunesse1 Рік тому

    > florida_rast

  • @divyanshukumardixit5833
    @divyanshukumardixit5833 Рік тому

    Thanks for this wonderful tutorial. Is it possible to add rive as a line object within the generated 3d plot? I have tried to do that but the river gets elevated with population z values. I'll be highly obliged if you suggest a code. Thanks again.

    • @MrPecners
      @MrPecners  Рік тому +1

      Yes, there are a couple ways to do that. You could use rayshader::generate_line_overlay(), though I haven't used this much myself. More info on that here: www.rayshader.com/reference/generate_line_overlay.html.
      My preferred method is to simulate data so it's plotted exactly like the rest of the data. I do this by taking the geometry (in this case the river linestring), cast it to a linestring/multilinestring if necessary (not needed for your river), then buffer around it so it will be large enough to show up on the final map, give it a dummie population of 1, then use bind_rows() to add to data. See lines 38-52 of this script: github.com/Pecners/rayshader_portraits/blob/main/R/portraits/oregon/render_graphic.R

  • @sitrakaforler8696
    @sitrakaforler8696 Рік тому

    Dude...can you do an example for France ?

  • @grantchalmers3878
    @grantchalmers3878 Рік тому +1

    Good video. Things were going well until this error on render_highquality() step: "Error in rayrender::obj_model(cache_filename, x = -bbox_center[1], y = -bbox_center[2], :
    unused argument (texture = TRUE)". Can't find anything online on this one.

    • @MrPecners
      @MrPecners  Рік тому +1

      Install most recent dev versions of rayshader and rayrender.
      remotes::install_github("github.com/tylermorganwall/rayshader")
      remotes::install_github("github.com/tylermorganwall/rayrender")

    • @grantchalmers3878
      @grantchalmers3878 Рік тому +1

      @@MrPecners Great thanks. Back in business.

    • @grantchalmers3878
      @grantchalmers3878 Рік тому

      Was able to replicate the Siene, although with not fully defined hexagons if you zoom in very closely (looks a bit like melted ice cream on top). I tried to do this for a local river (Brisbane river in Australia), but population density is a lot lower, meaning sparse hexagons. Are there any parameters to adjust, or are you better off just visualising high populated regions?

    • @hasanzonaed2365
      @hasanzonaed2365 Рік тому

      @@MrPecners webpage not found
      can you help please?

    • @MrPecners
      @MrPecners  Рік тому

      @grantchalmers3878 You could try upping the resolution, both of your matrix on the front end and of your rendered image on the back end. With sparse population, or more zoomed in areas, I will set solid=TRUE in plot_3d() as well. All that said, yeah low population areas are just harder.

  • @abhisheknayak2088
    @abhisheknayak2088 Рік тому

    Thats Amazing. Thank you very much for posting these videos. I am beginner to R can you please let me know how can I plot for states of other countries. For example in my case I wanted to do the same thing for an Indian state. Your help would be much appreciated

  • @MuhammadZubair-yd9ev
    @MuhammadZubair-yd9ev Рік тому

    i am getting error like admin is not found

  • @audiophile...
    @audiophile... Рік тому +2

    I had no idea that you have a youtube channel too😭

    • @MrPecners
      @MrPecners  Рік тому +1

      It's pretty new!

    • @audiophile...
      @audiophile... Рік тому

      @@MrPecners i hope you post whenever you feel like it. 🙃