Visualization in R Basic Graphs Covid-19 Histograms Apparently the R Libraries has a River Nile function that produces a graph, how ironic? > print(hn) $breaks [1] 400 500 600 700 800 900 1000 1100 1200 1300 1400 $counts [1] 1 0 5 20 25 19 12 11 6 1 $density [1] 0.0001 0.0000 0.0005 0.0020 0.0025 0.0019 0.0012 0.0011 0.0006 0.0001 $mids [1] 450 550 650 750 850 950 1050 1150 1250 1350 $xname [1] "Nile" $equidist [1] TRUE attr(,"class") [1] "histogram" Plots . > Infected <- c(1, 3, 6, 4, 9) > Deaths <- c(2, 5, 4, 5, 12) > > # Graph cars using a y axis that ranges from 0 to 12 > plot(Infected, type="o", col="blue", ylim=c(0,12)) > lines(Deaths, type="o", pch=20, lty=4, col="red") > title(main="Covid-19-2023", col.main="C", font.main=6) > title(main="Covid-19-2023", col.main="Pink", font.main=6) > title(main="...
Comments
Post a Comment