Line charts and Connected Scatterplots in R with geom_line() and geom_path()

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

КОМЕНТАРІ • 9

  • @TheDataDigest
    @TheDataDigest  3 місяці тому

    You can download the R code from this video here in my free skool community:
    www.skool.com/data-analysis-with-r-6607/classroom/daa88316?md=ee80e25b6cc04dd5b54212441d7b28a9

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

    They don't know how much content you covered. Amazing

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

      Well thank you. And I already have ideas for the next 30 videos :) We will see what the future brings.

  • @anirudhvenkataramanan4321
    @anirudhvenkataramanan4321 2 роки тому +1

    Nice video. But how to label the max and the min values in the line plot?

    • @TheDataDigest
      @TheDataDigest  2 роки тому +1

      You can always add geom_text() with specific x- and y-values and whatever label = "example" you wish. I recommend using the base functions which.max() and which.min(). So if you have two vectors with y_values as dates and x_values you want to find the min and max you could do:
      + geom_text(mapping(aes(x=min(x_values), y=y_values[which.min(x_values)]), label = "this is the minimum"),
      and then repeat the same for max values.

  • @manikandanp6120
    @manikandanp6120 2 роки тому +1

    Sir put more vedio regulaely

    • @TheDataDigest
      @TheDataDigest  2 роки тому

      That's the plan! At least weekly uploads this year. Hopefully even more in the future.