I tried to change the font of my hist and barplot (with R), but I can not succeed... I tried the extrafont package but I can not find how to change it...

How can I simply change all of the fonts for all of my graph (hist and barcharts) ? I only have axis labels and of course the numbers on the axis.