Plotting with ggplot2: Part 1

Поделиться
HTML-код
  • Опубликовано: 3 дек 2024

Комментарии • 89

  • @hammao
    @hammao 10 лет назад +1

    I wish your coursera courses are just like this !!! Very informative and at a considerable pace.

  • @donnyt857
    @donnyt857 8 лет назад +12

    Thank you. This is a really decent video. The graphics and labels to code are a great help to us novices.

  • @MrHelsch
    @MrHelsch 3 года назад

    Helped my understanding of visualizations with ggplot2 immensely. Thanks!

  • @nnamdiosuagwu1493
    @nnamdiosuagwu1493 3 года назад

    I love this Roger. You have indeed simplified the whole course called Data Viz. I am so glad.

  • @annafeting9741
    @annafeting9741 4 года назад

    Thank you! Nice introduction to ggplot package!

  • @natashasamuel9346
    @natashasamuel9346 3 года назад

    Great GGPOT2 Presentation.
    Thank You.

  • @arianazeri
    @arianazeri 9 лет назад

    Thanks a lot you made it look so easy,P.S the way you illustrate the crude data by these plot was really great.

  • @lu8403
    @lu8403 10 лет назад +1

    Excellent! Just start to use ggplot2 and this is a brilliant starting point.

  • @alqu2222
    @alqu2222 7 лет назад +1

    Excellent presentation, very helpful

  • @chriswaldeck1119
    @chriswaldeck1119 10 лет назад

    Very coherent. Good pace and great information presented.

  • @jamesbarrett1878
    @jamesbarrett1878 9 лет назад +1

    Brilliant video. Thank you Roger!

    • @khanhphamdang611
      @khanhphamdang611 9 лет назад

      +James Barrett
      Hi James, do you know how to get data set to practice following this video? Thanks

    • @dannuttle9005
      @dannuttle9005 9 лет назад

      +Khanh Pham Dang "This dataset comes with the ggplot2 package" at about 10:28

  • @MoshMoshProf
    @MoshMoshProf 8 лет назад

    Very good. Suggestions: Add subtitles, so we can skip the intro on ggplot2. Use a large mouse to point at the slides.

  • @melkwold3873
    @melkwold3873 8 лет назад +1

    Thank you very much !!

  • @JoergWild
    @JoergWild 9 лет назад +2

    Hi Roger. Excellent video! How do you get the presenter video in the upper right corner??

  • @williamstephenjones3863
    @williamstephenjones3863 7 лет назад +3

    Excellent video, but you need to remove the full stop (after drv,) from your example code in the video:
    qplot(hwy, data = mpg, facets = .~drv,. binwidth = 2)
    else the code will produce an error.
    Best,
    W

  • @jianishen5656
    @jianishen5656 7 лет назад +3

    Thank you so much ! It helps a lot !

  • @khanhphamdang611
    @khanhphamdang611 9 лет назад +1

    Thanks so much Roger. I have begin for several days. I found your videos by accident. It is extremely useful for my study. In case I have any question about Graph in R during my learning, could I contact you for help?

  • @tbrifki
    @tbrifki 6 лет назад

    Thank you. Excellent explanation.

  • @madanjitender
    @madanjitender 8 лет назад

    Thanks for very informative video, and learning ggplot2 was due for very long time for me.

  • @blumster
    @blumster 8 лет назад +1

    thank you very much!

  • @balkrishnaparab3353
    @balkrishnaparab3353 3 года назад

    Good exposition. Thank you.

  • @hsabzevari1
    @hsabzevari1 11 лет назад

    Thanks Roger for sharing the video, great job done!

  • @mariajosecanolesroa6961
    @mariajosecanolesroa6961 4 года назад

    It was an excellent explanation, thank you!!

  • @bassemchermiti246
    @bassemchermiti246 4 года назад

    thank you very much good job

  • @michaelbrady3836
    @michaelbrady3836 8 лет назад +1

    Very helpful. Thanks!

  • @manonabrilestades
    @manonabrilestades 5 лет назад

    Hello!! Can i do you one question? Is about a code with ggplot that i cant resolve... :(

  • @carlosgsouza
    @carlosgsouza 11 лет назад +1

    Amazing video. Thanks for sharing!

  • @jeroendevreese4695
    @jeroendevreese4695 7 лет назад +1

    Very instructive video, thx!

  • @chrisnguyen5545
    @chrisnguyen5545 9 лет назад

    These have been very informative. Thank you good sir.

  • @christinekraamwinkel9351
    @christinekraamwinkel9351 8 лет назад +2

    Thank you for this fantastic video!! It has helped tons!!

  • @RareEconomist
    @RareEconomist 7 лет назад +1

    Hi! Your video is very useful, I was wondering if you can share your presentation because I really like to have that useful information

  • @ravisharma-zb6ky
    @ravisharma-zb6ky 10 лет назад +1

    Amazing work Roger.

  • @Jose-pq4ow
    @Jose-pq4ow 8 лет назад

    Very useful but having the last data set would help me a lot...

  • @jully8403
    @jully8403 8 лет назад +1

    > qplot(preciokilo, data=basebananos, fill=fecha1,ylab = "Precio", xlab="Tiempo", main="Precio/kilo vs Tiempo")
    error `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.

  • @techknowhow4802
    @techknowhow4802 6 лет назад

    Great video on the history and various graphs one can make with ggplot. I like using ggplot for my longer, more thorough analyses. The possibilities are almost limitless with bagplots, violin distribution plots, and even 3D rotating plots (you can see some examples of these on my channel under ggplot or R, RStudio). Again great video. Thank you.

  • @hammao
    @hammao 10 лет назад

    Thank you... Please do same for ggmap, dplyr and ggvis...

  • @a.a3265
    @a.a3265 6 лет назад

    thank you can you draw the red circle in shape is different to others color

  • @marlowisws
    @marlowisws 11 лет назад

    A quick walk through on installing ggplot2 would be helpful

    • @Laotze89
      @Laotze89 10 лет назад +1

      When you're in R, either in the terminal or in an IDE (Rstudio for example) - type "install.packages('ggplot2')".
      To later use it, you have to load the package with the command: "library(ggplot2)"

  • @SHEKINAHVOICING
    @SHEKINAHVOICING 9 лет назад

    I am having this error when i tried to geom_point()
    > scatterplot + geom_line()
    Error in exists(name, envir = env, mode = mode) :
    argument "env" is missing, with no default
    Can someone explain why this is happening. I am using R Studio. Thanks

  • @anozanb
    @anozanb 8 лет назад

    any way for making 2 y-axis plots in ggplot2 ???

  • @napier995
    @napier995 7 лет назад

    Why do I get a different histogram depending on the order of the levels of the factor? Try running the following code with and without the line for re-ordering the factor level. Data from here: github.com/TarekDib03/ExploratoryDataAnalysisCoursera/blob/master/maacs.Rda
    load("maacs.Rda")
    # Change order of yes/no levels
    maacs$mopos

  • @mosesotieno1629
    @mosesotieno1629 4 года назад

    Thanks. How about this error? Error: 'encode_colour' is not an exported object from 'namespace:farve

    • @bgr225
      @bgr225 4 года назад

      What code did you use?

  • @jesithasalam
    @jesithasalam 8 лет назад

    how to solve this error:
    > library("ggplot2", lib.loc="~/R/win-library/3.2")
    Error in loadNamespace(j

  • @bilalasal
    @bilalasal 9 лет назад

    Thank a lot..can u pleas add a link to the commands u used so we can copy them and repeat after u

  • @anashalzahrani
    @anashalzahrani 9 лет назад

    v.nice thanks, I would like to meet you as I am a MPH student in JHSPH

  • @Ankawenu
    @Ankawenu 9 лет назад

    Thanks!

  • @Smael64
    @Smael64 7 лет назад +1

    Do you have a link to the PowerPoint slides?

  • @destinybradley7521
    @destinybradley7521 9 лет назад +1

    i installed the package but its doing this:> library(ggplot2)
    Error in loadNamespace(j

    • @jesithasalam
      @jesithasalam 8 лет назад

      +Destiny Bradley
      Hi,
      Did you solve the issue??
      I too have the same issue.. can u help me please

    • @destinybradley7521
      @destinybradley7521 8 лет назад

      Hey yes I did, the easiest thing to do is send you to stackoverflow link, as I did it through that - but essentially for me it was a laptop issue, corrupting the files ...... stackoverflow.com/questions/34753612/why-cant-i-use-my-installed-packages-in-r/34764504#34764504 I hope this helps, if not let me know xx

    • @techknowhow4802
      @techknowhow4802 6 лет назад

      I believe ggplot comes standard with the Tidyverse package. Just install.packages("tidyverse") then run it with library(tidyverse) and that should work for you. Also, be sure and check your version of R. Update to the latest version on the Cran site. :)

  • @thanhson5734
    @thanhson5734 7 лет назад

    How can I increase size of font and numbers in boxplot and scatter plot/

  • @sriharshabsathreya
    @sriharshabsathreya 8 лет назад

    Hi, how to import the RDA files, I need to import maacs data set which is in Rda format. save, load seems to be doesn't work . Any help is highly appreciated

    • @sriharshabsathreya
      @sriharshabsathreya 8 лет назад

      solution to import RDA files
      r.789695.n4.nabble.com/How-to-open-rda-file-in-R-td1049893.html

  • @cjk24
    @cjk24 7 лет назад

    Thank you :D !!

  • @topfundus1093
    @topfundus1093 4 года назад

    Danke! Sehr kompetent!

  • @Erickingzsx
    @Erickingzsx 9 лет назад

    just saved my life! thanks

  • @makarandumarji55
    @makarandumarji55 8 лет назад

    First of all your videos are great Thanks for that
    But the method="lm" function gives me an error saying that Unexpected parameter

  • @Alebtong1
    @Alebtong1 9 лет назад

    Great

  • @jalakshukla
    @jalakshukla 4 года назад

    I want to draw a multifaceted diagram using "mpg" for the factors "cty" and "hey". Facet factor= dev
    1) how to draw a multifaceted diagram with color
    2) How to add multiple plot Syntex in vim file

    • @bgr225
      @bgr225 4 года назад

      Hello, for your first question, does the following code do what you want?
      ggplot(mpg, aes(cty, hwy, color = drv)) +
      geom_point() +
      facet_wrap(~drv)
      Unfortunately I can't help with the second question

  • @pauleseme5517
    @pauleseme5517 4 года назад

    Thanks

  • @khanhphamdang611
    @khanhphamdang611 9 лет назад +2

    Can all of you help me to know how to get data set for this video?
    Thanks

    • @techknowhow4802
      @techknowhow4802 6 лет назад +1

      There are a ton of free data sets on the University of California at Irvine's data science department site. Go to it here: archive.ics.uci.edu/ml/index.php

  • @bindongodembele3381
    @bindongodembele3381 8 лет назад +1

    does someone know how to make forest plot with R. I am lost

    • @siauphenglee1307
      @siauphenglee1307 7 лет назад

      You can try using some meta-analysis packages. Such as 'metafor', with the function 'forest', you can make a forest plot easily.

    • @cwgoforth
      @cwgoforth 5 лет назад

      Use JASP to create forest plots....no better way to go than JASP!

  • @michaelrockinger
    @michaelrockinger 6 лет назад +1

    Why talking so much about qplot when the title is about ggplot? Loss of time.

  • @Hey-mj5jg
    @Hey-mj5jg 6 лет назад

    data("")
    plot()
    attach()
    par(mfrow=c(1,2)
    2xplot(wt, dose, col="", main="")
    B

    • @Hey-mj5jg
      @Hey-mj5jg 6 лет назад

      t=data.frame(A=rep(c("a","b"), each=10),B=norm(20),C=seq(1,100,by=5),D=1:20)
      tab[1,3]=NA
      quantile(tab$D, .00)
      colSums(tab[,2:4],na.rm=true)
      sum(is.na(tab$C))
      mean(tab$C,na.rm=TRUE)
      any(is.na(tab$C)
      sort(tab$B,decreasing=TRUE)
      sort(tab$B)
      tab["E"]=tab$B^2

  • @mattjuru
    @mattjuru 6 лет назад

    Thank you, this is a really usefull video.
    I would like some help. I have a data with 4 information (exemple), the first is real (A). So, I need a grafhic (geom) with A in axis X and LC, A1 and A2 in axis Y. It's possible? How can I do?
    Data exemple:
    A LC AC1 AC2
    1 1,27 1,47 1,29 1,27
    2 1,80 2,16 1,89 1,86
    3 1,75 1,92 1,68 1,65
    4 1,94 2,70 2,36 2,33
    5 1,54 1,80 1,58 1,55
    6 1,96 2,25 1,97 1,94

  • @ryan2009cov
    @ryan2009cov 4 года назад

    Video is titled 'Plotting with ggplot2,' but the guy spends most of the time talking about qplot... what's that all about?

    • @bgr225
      @bgr225 4 года назад

      qplot is a ggplot2 function and keeps in mind that the video was published 7 years ago

  • @nihar1819
    @nihar1819 7 лет назад

    how to get the MAACS dataset ?

    • @guptamols
      @guptamols 7 лет назад +1

      github.com/lejarx/MAACS-dataset/blob/master/maacs.rda

  • @punchline9131
    @punchline9131 5 лет назад

    I would like to use "ggplot2" to create a graph showing whether life satisfaction returns to the value it had before the unemployment event occurred.
    Unemployment I have coded with 0 = not unemployed and 1 = unemployed. General life satisfaction is coded 0 - 10.
    I have already created the data set df_emp with a subset command, which contains all persons who were unemployed at least once. It also contains all years of observation of these persons. So all years before, during and after unemployment, as well as the corresponding values for life satisfaction
    The years before, during and after the event should now be entered on the x-axis. Where 0 is the event unemployment. The values -1 -2 and 1 2 etc. show values for the years before and after unemployment.
    On the y-axis the values for life satisfaction should then be deducted (centered).
    Unfortunately, I can't manage to model this graphic in R and would therefore be very pleased if somebody could help me or give me some tips on how to proceed.
    Best regards
    ps. I got the graphic from Lucas et al. (2004) - Unemployment alters the set point for life satisfaction

    • @bgr225
      @bgr225 4 года назад

      Hello did you manage to create the graph?

  • @zhongyuantian417
    @zhongyuantian417 9 лет назад

    perfect!

  •  7 лет назад

    You talk way too fast man. is difficult to keep up with you. I suggest you slow down a bit since there are foreign who also watch these videos

  • @themanager1980
    @themanager1980 9 лет назад

    GUI GUI GUI. It is the robots era and we still have to waste time writing syntax.
    GUI GUI GUI. Just drag and drop and the software should be more smart to know what we want. Just like Tableau

    • @markhollingsworth1725
      @markhollingsworth1725 9 лет назад +1

      themanager1980 Automation requires programs and syntax. Any program that is GUI controlled without a similar command capability is very limited. GUIs are fine if you only have to do a it couple of dozen times. But a couple of thousand times is a different story. I write many processes that are automated in a script so that people do not have to spend weeks at the terminal using GUIs.

    • @themanager1980
      @themanager1980 9 лет назад +1

      Thanks Mark. I mean both options GUI and syntax. Maybe as SPSS. Graphs are so limited in SPSS tho.

    • @markhollingsworth1725
      @markhollingsworth1725 9 лет назад

      themanager1980 I agree completely.

  • @vincenzo4259
    @vincenzo4259 2 года назад

    Thanks