본문 바로가기
반응형

분류 전체보기123

(R) scatter dot plot/ a variable with continuous colour/by continuous size/ the way to adjust legend of the filling plot As you can easily understand, the variables x and y on x and y-axis are well represented even if they are continuous. Then what about adding another continuous variable to the dot plot?You can make a dot plot with smoothly colored dots that express the new continuous variable. Also, You can make a dot plot with smoothly getting bigger dots that express another continuous variable. For this post,.. 2020. 8. 27.
F distribution F - distribution F distribution is a distribution with two degrees of freedom which is usually notated as n(df1) and m(df2). The distribution is highly related to Chi-square distribution, also related to a gamma distribution, beta distribution ,and t distribution. F distribution table usually exists for a=0.1, 0.05, 0.025, 0.01, 0.001I will show two cases when a=0.1 and a=0.05 1. F table for a=0.. 2020. 8. 25.
(R) scatter dot plot/ distinguish by discrete colour/by shape/ by colour and shape/ by filling and vacant > ?USJudgeRatings> mean(USJudgeRatings$PREP)[1] 7.467442 > mean(USJudgeRatings$INTG)[1] 8.02093 > USJudgeRatings_%mutate(INTGR=ifelse(INTG>8.02,"HIGH","LOW"),PREPR=ifelse(PREP>7.46,"LONG","SHORT")) > ggplot(data=USJudgeRatings,aes(x=DILG,y=FAMI))+geom_point()> ggplot(data=USJudgeRatings,aes(x=DILG,y=FAMI))+geom_point(shape=3) > ggplot(data=USJudgeRatings_,aes(x=DILG,y=FAMI,colour=PREPR))+geom_po.. 2020. 8. 25.
(R)The way to make "Stacked Area Graph" / The way to switch the order of legend and stack/geom_area() > data_frame_1 View(data_frame_1) > ggplot(data=data_frame_1,aes(x=Year,y=Freshmen,fill=Sex))+geom_area() > ggplot(data=data_frame_1,aes(x=factor(Year),y=Freshmen,fill=Sex,group=Sex))+geom_area() elements of Year in the graph is 2007.5, 2010.0 ... difficult to decode the graph. elements of factor(Year) in the graph is 2008,2010,2012,2014,2016,2018,2020 > data_frame_2View(data_frame_2) > ggplot(d.. 2020. 8. 24.
반응형