Alert I am available for a postdoctoral position starting July 2025. Feel free to contact me for opportunities or collaborations 😉
Garden analysis
This page just shows the distribution of gains from my personal garden over the years.
Garden
Analyse
Perso
Author
Corentin Maslard
Published
August 22, 2022
The aim of this project was simply to record the weights of each fruit and vegetable harvested over the years, in order to predict the possible gains from creating your own garden.
# basic treemapfor (year_i inlevels(as.factor(df_harvest_price$year))){png(filename=paste0("data_analyse_garden/plot/",year_i,"_treemap.png"),width=800, height=300) p <-treemap(df_harvest_price %>%filter(year==year_i),index=c("type","name"),vSize="total",type="index",palette = wesanderson::wes_palette("Darjeeling1", 7, type ="continuous"), fontsize.labels=c(15,12), # size of labels. Give the size per level of aggregation: size for group, size for subgroup, sub-subgroups...fontcolor.labels=c("white","black"), # Color of labelsborder.col=c("black","white"), # Color of borders of groups, of subgroups, of subsubgroups ....border.lwds=c(2,1) , # Width of colorsfontface.labels=c(2,1), # Font of labels: 1,2,3,4 for normal, bold, italic, bold-italic...bg.labels=c("transparent"), # Background color of labelsalign.labels=list(c("center", "center"), c("right", "bottom") ), # Where to place labels in the rectangle?overlap.labels=0.5, # number between 0 and 1 that determines the tolerance of the overlap between labels. 0 means that labels of lower levels are not printed if higher level labels overlap, 1 means that labels are always printed. In-between values, for instance the default value .5, means that lower level labels are printed if other labels do not overlap with more than .5 times their area size.inflate.labels=F, title=""#title=year_i ) dev.off()}