## plot the density
ggplot(data.frame(x = c(0, 20)),
aes(x)) +
stat_function(fun = dgev,
args = list(loc = 1,
scale = .5,
shape = .15),
colour = 'royalblue4') +
labs(x = '',
y = 'Density') +
theme_classic()
Run the code above in your browser using DataLab