Introduction to ggplot2 Package in R | Data Visualization Tutorial for Beginners & Advanced Examples

Поділитися
Вставка
  • Опубліковано 7 січ 2025

КОМЕНТАРІ •

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

    Thank You Joachim Loving The New Channel Format!Great Tutorial Dude!!

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

      This is really great to hear, thanks for the feedback Darryl! :)

  • @rodneyjones5066
    @rodneyjones5066 Рік тому +4

    Excellent tutorial! I have always found ggplot2 confusing, but in the video all is very clearly explained. Thank you.

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

      Thank you so much Rodney, glad the explanation helped you to understand this wonderful add-on package! Once you got the basics, it's very simple and intuitive to use. :)

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

    Such a great teacher! honestly the best explanation of ggplot that I have seen on UA-cam!

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

      This is such a great feedback, thank you so much Magda! :)

  • @gecarter53
    @gecarter53 Рік тому +2

    This was a great intro to ggplot(). Within 30 minutes, you were able share enough of the basics so a beginner could easily create impressive graphics. The only thing I'd be careful about is making column names that match parameter names (example: aes(x = x, y = y)). This can be a bit confusing. 👏

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

      Thank you very much for the kind words and your feedback! Your feedback points on two different ideologies. Some people argue that it's even easier to understand code in case the variable names match the argument names, and hence this is commonly done in instructions or forums. On the other hand, I definitely see your point that it might be confusing, so thanks a lot for mentioning this! Regards, Joachim

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

    Excellent presentation and perfect explanation of ggplot2 package. I owe you a lot for getting experience in R. Please, keep up the great work.
    I just want to ask you if you can make a tutorial on the (lubridate) package, as - I believe - you are the best person that can explain it in an elegant way.
    Again, thank you so much.
    😊😊😊😊

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

      Thank you so much Muhammed, it's really great to hear that the tutorials on Statistics Globe helped you on your R programming journey! Also, thanks a lot for the topic suggestion, this might be a good idea for a future video. I'll keep it in mind. Regards, Joachim

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

    Thank You, Excellent tutorial!
    Do you have a video about GPCM analysis and scree plots of grain parameter invariance tests?

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

      Thanks a lot, glad you like the video! Unfortunately, I don't have a tutorial on this topic yet. I'll keep it in mind for the future. Regards, Joachim

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

    Excellent work as usual. It misses only one thing. The video should be divided in sections.

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

      Thank you very much Rui, glad you like the video! :) Regarding sections, actually the video is divided into three sections: 1) Grammar of Graphics; 2) Basic Application; 3) Advanced Application. You can find the description of the sections in the intro of the video. Regards, Joachim

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

      @@StatisticsGlobe I think he meant the youtube video player UI, the bar can be divided into sections

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

      Oh thanks a lot for the hint! Usually, UA-cam assigns these sections automatically after some time. However, I have now assigned them manually as well. Thanks again, Joachim

  • @AnseloSilver
    @AnseloSilver 9 місяців тому +1

    coding line 123 to 125 does not work for me , I get error : Error in aggregate.data.frame(diamonds, price ~ clarity, mean) : 'by' must be a list. .....
    anyone can help?

    • @StatisticsGlobe
      @StatisticsGlobe  9 місяців тому +1

      Hey, have you executed exactly the same code with the same data as I did in the video?

    • @AnseloSilver
      @AnseloSilver 9 місяців тому +1

      @@StatisticsGlobe i followed every line of code for this video... just when i go to that point it did not work. i did this to get the same result and continue with the video
      diamonds_m_cl

    • @AnseloSilver
      @AnseloSilver 9 місяців тому +2

      @@StatisticsGlobe thanks for getting back to me!!!

    • @StatisticsGlobe
      @StatisticsGlobe  9 місяців тому +1

      Thanks for the clarifications. I've executed my code once again, and for me, it works. That's very strange. However, I'm happy that you've found a solution to continue running the code.

  • @kpkavitha3480
    @kpkavitha3480 6 місяців тому +1

    Im trying to plot ggplot but it's not getting. My data set has two variable or samples collected from same place, places Or location grouped in to 5 places. So total data points are 24 that is 24 x nd 24 y. so how to write command. I got basic scatter plot.. But in that place is not coming. X nd y, that are the variable from same places . As I have 5 locations. Help me over this😢😢 I saw full video... Tried faucet also.. Not getting...

    • @StatisticsGlobe
      @StatisticsGlobe  6 місяців тому

      Hey, thank you for the kind comment. Could you provide the output after running head(your_data)? This would make it easier for me to understand the structure of your data. Furthermore, please share your code.

    • @kpkavitha3480
      @kpkavitha3480 6 місяців тому +1

      Thanks for your response. . As I want a ggplot for my data..before going to output Let me tell about my data.. I have two data sets A nd B (samples collected from same location), let us say place X, nd from each place 3/4 locations r tere( say X1, x2...).. So in this way I have 6 places with each place has 3/4 locations having 2 samples each from each location... Hope im clear🙄.. So first tried with inputs including samples A nd B nd places... But it's showing error.. rlang.. Then after watching video.. I started with base scatter plot.. So went with usual input nd I took A nd B as X nd Y axis respectively but didn't add places. Nd I got too... All of same colour... Even I didn't get the plot in different colors though I did same as in video. Thn I added places too.. I gave each place a code.... That was my input.. But it's coming + sign in console... Thn r lang.. Was coming again nd again.. Though ggplot 2 I have installed... It's showing some version 4.2...im not remembering... As these all took my whole day.. I didn't saved it... Nd shutdown... I tried to retrieve it but didn't got. I hope you get it... If not please let me know. Thanks you so much.. 🙂

    • @StatisticsGlobe
      @StatisticsGlobe  6 місяців тому +1

      So do I get it correctly that you have two numeric variables and another variable with locations. And now you want to draw these numeric variables in a scatterplot, colored by the locations? This is explained in this tutorial: statisticsglobe.com/color-scatterplot-points-in-r Make sure that your data set is formatted like shown here.

    • @kpkavitha3480
      @kpkavitha3480 6 місяців тому +1

      Yes exactly... Thanks😍 I will do it..nd let u know ... 🙂

    • @StatisticsGlobe
      @StatisticsGlobe  6 місяців тому

      Great, glad it's helpful! :)

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

    ty

    • @matthias.statisticsglobe
      @matthias.statisticsglobe Рік тому

      You're welcome! Hope the video has been helpful!

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

      @@matthias.statisticsglobe this hasn't because i finished my project but alot of the videos have been. wouldnt have completed it withour

    • @matthias.statisticsglobe
      @matthias.statisticsglobe Рік тому

      @@vanhoot2234 That's great to hear! So, congratulations on the the finished project!