#plotting dati per anno a barre colorateplt_Year <-ggplot(date_table) +# Make custom panel gridgeom_hline(aes(yintercept = y), data.frame(y =c(0:3) *1000),color ="lightgrey" ) +# Add bars to represent the cumulative track lengths# str_wrap(region, 5) wraps the text so each line has at most 5 characters# (but it doesn't break long words!)geom_col(aes(x = Var1,y = Freq,fill = pubbl, ),position ="dodge2",show.legend =TRUE,alpha = .9 ) +# Make it circular!coord_polar()plt_Year
#plotting dati per quadrimestriplt_quarter <-ggplot(date_table_quarters) +# Make custom panel gridgeom_hline(aes(yintercept = y), data.frame(y =c(0:3) *1000),color ="lightgrey" ) +# Add bars to represent the cumulative track lengths# str_wrap(region, 5) wraps the text so each line has at most 5 characters# (but it doesn't break long words!)geom_col(aes(x = Var1,y = Freq,fill = pubbl, ),position ="dodge2",show.legend =TRUE,alpha = .9 ) +# Make it circular!coord_polar()plt_quarter
Scatterplot Convenzionale vs Alternativo
#scatterplot convetional Score - Alternative Scorescatterplot <-ggplot(db, aes(x = Score, y = alternative_score)) +geom_point(shape=21, fill="white", color=as.factor(db$hbr_color)) +geom_smooth(method = lm) +labs(x ="PRECISE-DAPT", y ="Alternative PRECISE-DAPT")scatterplot <- scatterplot +geom_hline(yintercept=25, linetype="dashed", color ="red")scatterplot +geom_vline(xintercept=25, linetype="dashed", color ="red")
Attaching package: 'scales'
The following object is masked from 'package:purrr':
discard
The following object is masked from 'package:readr':
col_factor