Plotting with ggplot2: Part 1

Поділитися
Вставка

КОМЕНТАРІ • 89

  • @donnyt857
    @donnyt857 7 років тому +12

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

  • @hammao
    @hammao 9 років тому +1

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

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

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

  • @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.

  • @jianishen5656
    @jianishen5656 7 років тому +3

    Thank you so much ! It helps a lot !

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

    Helped my understanding of visualizations with ggplot2 immensely. Thanks!

  • @JoergWild
    @JoergWild 8 років тому +2

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

  • @williamstephenjones3863
    @williamstephenjones3863 6 років тому +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

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

    Thank you! Nice introduction to ggplot package!

  • @chrisnguyen5545
    @chrisnguyen5545 8 років тому

    These have been very informative. Thank you good sir.

  • @ravisharma-zb6ky
    @ravisharma-zb6ky 10 років тому +1

    Amazing work Roger.

  • @hsabzevari1
    @hsabzevari1 10 років тому

    Thanks Roger for sharing the video, great job done!

  • @davidalonsocuadrosnegrete4401
    @davidalonsocuadrosnegrete4401 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

  • @christinekraamwinkel9351
    @christinekraamwinkel9351 8 років тому +2

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

  • @carlosgsouza
    @carlosgsouza 10 років тому +1

    Amazing video. Thanks for sharing!

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

    Great GGPOT2 Presentation.
    Thank You.

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

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

  • @khanhphamdang611
    @khanhphamdang611 8 років тому +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?

  • @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.

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

    Excellent presentation, very helpful

  • @anashalzahrani
    @anashalzahrani 9 років тому

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

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

    It was an excellent explanation, thank you!!

  • @michaelbrady3836
    @michaelbrady3836 8 років тому +1

    Very helpful. Thanks!

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

    Very instructive video, thx!

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

    Thank you very much !!

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

    Thank you :D !!

  • @chriswaldeck1119
    @chriswaldeck1119 10 років тому

    Very coherent. Good pace and great information presented.

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

    thank you very much!

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

    Thank you. Excellent explanation.

  • @hammao
    @hammao 9 років тому

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

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

    Do you have a link to the PowerPoint slides?

  • @Erickingzsx
    @Erickingzsx 8 років тому

    just saved my life! thanks

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

    thank you very much good job

  • @jamesbarrett1878
    @jamesbarrett1878 8 років тому +1

    Brilliant video. Thank you Roger!

    • @khanhphamdang611
      @khanhphamdang611 8 років тому

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

    • @dannuttle9005
      @dannuttle9005 8 років тому

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

  • @Jose-pq4ow
    @Jose-pq4ow 7 років тому

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

  • @a.a3265
    @a.a3265 5 років тому

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

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

    Good exposition. Thank you.

  • @bilalasal
    @bilalasal 8 років тому

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

  • @Ankawenu
    @Ankawenu 9 років тому

    Thanks!

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

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

  • @Alebtong1
    @Alebtong1 9 років тому

    Great

  • @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.

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

    Danke! Sehr kompetent!

  • @zhongyuantian417
    @zhongyuantian417 8 років тому

    perfect!

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

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

  • @anozanb
    @anozanb 8 років тому

    any way for making 2 y-axis plots in 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

  • @marlowisws
    @marlowisws 10 років тому

    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)"

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

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

  • @destinybradley7521
    @destinybradley7521 8 років тому +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. :)

  • @jully8403
    @jully8403 7 років тому +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`.

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

    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 7 років тому

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

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

    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 3 роки тому

      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

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

    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

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

    Thanks

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

    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 3 роки тому

      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

  • @khanhphamdang611
    @khanhphamdang611 8 років тому +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

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

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

  • @bindongodembele3381
    @bindongodembele3381 7 років тому +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!

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

    how to get the MAACS dataset ?

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

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

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

    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 3 роки тому

      Hello did you manage to create the graph?

  •  6 років тому

    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

  • @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

  • @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 3 роки тому

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

  • @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.

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

    Thanks