ggplot, Visualization in R: from basics to advanced plots

Поділитися
Вставка
  • Опубліковано 5 вер 2024
  • Stanford SCI01: Introduction to Data Science
    You can access the slides from the following link:
    drive.google.c...

КОМЕНТАРІ • 97

  • @abbyrenaissance6727
    @abbyrenaissance6727 4 роки тому +2

    At last I've seen the light!!!! So thankful to have come across this video! Now I wont fail my class haha

  • @therightgame3
    @therightgame3 5 років тому +2

    This video is as amazing as R itself. Thank you !

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

    Thank you. Good tutorial on ggplot for beginners!

  • @niftkislay
    @niftkislay 4 роки тому +1

    Thanks a lot Mr. Mohammad. It was very helpful

  • @yonasgebreyesus5271
    @yonasgebreyesus5271 3 роки тому +1

    Thank you so much for this video! You explain very good... keep it up👍😉

  • @fadydoc
    @fadydoc 5 років тому

    best explanation of ggplot . Thank you so much

  • @ghasemyazdani5835
    @ghasemyazdani5835 7 років тому +4

    Perfect explanation! I do appreciate your nice video :)

  • @sadab321
    @sadab321 3 роки тому

    In order to come up with colors (30:53) you just need to convert the "cyl" column as a factor since 4, 6 and 8 are three fixed values which are essentially factors.
    This can be done by running the code:
    mtcars$cyl

  • @CurrentOwner911
    @CurrentOwner911 7 років тому

    Thanks for the explanation! You made my day.

  • @kiyanabahadori
    @kiyanabahadori 6 років тому +1

    Great work, thank you!

  • @ERA14318
    @ERA14318 5 років тому +3

    Thank you for such a nice tutorial! May I suggest to replace "as.character(cyl)" with "as.factor(cyl)"? Although as.character still works, number of cylinder should be defined as factors in the dataframe.

    • @mohammadshokoohi5412
      @mohammadshokoohi5412 5 років тому

      That is an absolutely valid point. Thanks for your feedback.

  • @sam33n53
    @sam33n53 6 років тому

    Awesome! I learnt a lot. Thank you

    • @mohammadshokoohi-yekta8099
      @mohammadshokoohi-yekta8099  5 років тому

      you can access the slides from here: drive.google.com/file/d/1biwZi04XFmuV1jgvQAUtcXbSQLJO6O8D/view

  • @funmilolaawe8839
    @funmilolaawe8839 4 місяці тому

    Thanks very much for this excellent lecture. The link to the slide isnt working. It says page not found. Please help

  • @sadafdpsjsr
    @sadafdpsjsr 4 роки тому

    Hi,
    Thank you so much for this tutorial. Could you please prepare a video for the forest plot? It would be a great help.

  • @Hey-mj5jg
    @Hey-mj5jg 6 років тому

    funkcia=function(a,b,c,n){
    vector=a:n
    dlzka=length(vector)+1
    pomvekt=vector()
    i=0
    while(i!=dlzka+1){
    pomvekt[dlzka-i]=vector[i]
    i=i+1
    }
    print(pomvekt)
    i=0
    for(i in 1:length(pomvekt)){
    if(pomvekt[i]==b){
    pomvekt[i]='B'
    print(pomvekt[i])
    }else if (pomvekt[i]==c){
    }else{
    print(as.numeric(pomvekt[i]))
    }
    }
    }
    funkcia(2,4,6,10)

    • @Hey-mj5jg
      @Hey-mj5jg 6 років тому

      install.packages("RMySQL")
      install.packages("DBI")
      library(RMySQL)
      library(DBI)
      #genDB = dbConnect(MySQL(),user="genome", host="genome-mysql.cse.ucsc.edu") # vytvorenie spojenia
      #DB = dbGetQuery(genDB,"show databases;") # uk??ka dab?zy
      #dbDisconnect(genDB) # ukon?enie spojenia
      cb1

  • @sophannasoth2301
    @sophannasoth2301 3 роки тому

    Thank you for your contribution. Can you share me file? The given link file not found.

  • @sameerulsalam9745
    @sameerulsalam9745 5 років тому

    I have to make a box plot. In that i have to show ratio between two types of cells. But my output in graph should be as - if ratio is 1 out put shall be zero, if ratio is greater than 1 let us assume 10/5= 2/1 it shall show value in box plot +2 or if value is 5/10 =1/2 the value shall be displayed as -2. Can you please guide me how to do this. I found such type of boxplot in a paper.
    Thanks in advance

  • @MyMrwrestling
    @MyMrwrestling 5 років тому +1

    i love u brother

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

    sir, drive isn't working now. how can i get the slide?

  • @assalrabiy4885
    @assalrabiy4885 7 років тому

    Hi I am straggling to write R codes for the following statement my data set is for the first two statement is epldata and for the last statement is eplsummary any idea on what should I write for the codes?
    Create a visualisation showing the distribution of market value by playing position that highlights which position has the highest median value.
    Create a visualisation showing the distribution of player ages, facetted by position category.
    Create a visualisation of the distribution of Wikipedia page views for each player that
    highlights which club has the highest median number of page views.

  • @dustins3400
    @dustins3400 5 років тому

    Thanks for the tutorial. Is there a reason you are using as.character() instead of as.factor() to convert continuous variables into discrete?

    • @mohammadshokoohi5412
      @mohammadshokoohi5412 5 років тому

      good point!! No preference, both works. I think as.factor() would make more sense.

  • @jababnamgay6366
    @jababnamgay6366 4 роки тому

    Thank you so much

  • @maqsoodkhattak6350
    @maqsoodkhattak6350 4 роки тому

    Hi, i couldn't download this script, it's saying it's invalid. Can you please send it to me. Thank you so much.

  • @Ahtiongcooper
    @Ahtiongcooper 7 років тому

    Hi, do you know how to label the value of each bar in ggplot2 bar graph?

    • @mohammadshokoohi5412
      @mohammadshokoohi5412 5 років тому

      stackoverflow.com/questions/12018499/how-to-put-labels-over-geom-bar-for-each-bar-in-r-with-ggplot2

  • @akindelegbenga
    @akindelegbenga 7 років тому +1

    Hi, how can one access the slides in the video. really nice video. Thank you

  • @padmwe
    @padmwe 7 років тому

    Hey Mohammad, is it possible for you to send the slides ? N I found this sessional really useful . Thanks for the amazing work.

  • @charliest25
    @charliest25 7 років тому

    Sorry if my english its not god
    I have a problem when i use this ggplot(mtcars,aes(mpg))+geom_histogram(binwidth=5)+ggtitle("Distribucion de mpg")+xlab="kilometraje"+ylab="frecuencia"
    this is the problem
    Error in ggplot(mtcars, aes(mpg)) + geom_histogram(binwidth = 5) + ggtitle("Distribucion de mpg") + :
    could not find function "+

    • @mkthalmann
      @mkthalmann 7 років тому +1

      Hey, I get the same error. If you run the following line of code, though, it works. Maybe the version changes affected the xlab and ylab commands.
      ggplot(mtcars,aes(mpg))+geom_histogram(binwidth=5)+ggtitle("Distribucion de mpg")+labs(x="kilometraje", y="frecuencia")

    • @charliest25
      @charliest25 7 років тому

      It works , thank you Ma Th

    • @niranjanniranjan5968
      @niranjanniranjan5968 7 років тому

      ggplot(mtcars, aes(mpg)) + geom_histogram(binwidth=5) + ggtitle("Distribucion de mpg") + xlab("kilometraje") + ylab("frecuencia")

  • @drredaal-shenawy7317
    @drredaal-shenawy7317 3 роки тому

    Plz check the link for slides

  • @MrNishuai
    @MrNishuai 7 років тому +1

    Great work, can you also send me the slides? thanks so much!

  • @abdelazizzariouh5337
    @abdelazizzariouh5337 7 років тому +1

    could you send me the slides as well? Thank you in advance!!

  • @Plantshealth
    @Plantshealth 5 років тому

    I donot know from where I download and start the R

    • @MyMrwrestling
      @MyMrwrestling 5 років тому +1

      have you downloaded R on to ure computer?

    • @Plantshealth
      @Plantshealth 5 років тому

      @@MyMrwrestling Sir, I am very sorry, I donot have R as the operating system is window, laptop is core i 5, ram 8 gb and 500 Gb harddisk, from where I can download the R and associated plug in .

    • @MyMrwrestling
      @MyMrwrestling 5 років тому +1

      Same I have Windows too .... go on Google and search download R

    • @Plantshealth
      @Plantshealth 5 років тому

      @@MyMrwrestling Haha, I can search by myself, why you have asked question? I was thinking you will be helping me.

    • @MyMrwrestling
      @MyMrwrestling 5 років тому

      @@Plantshealth I'm not sure what u need help in then ? .... do u have Skype .... add me ... Im happy to go through it with u

  • @cursos1844
    @cursos1844 5 років тому

    Watch a 1.5x or 2x

  • @mattlungrenmd
    @mattlungrenmd 7 років тому

    gesundheit @ 27:10