Categories
Mastering Development

Fit Variance gamma to data

I am using R studio to estimate paramters for data under Variance Gamma. I want to fit this data to the data and find estimates of parameters. The code I have is x<-c(1291,849,238,140,118,108,87,70,63,58,50,47,21,21,19) library(VarianceGamma) init<-c(0,0.5,0,0.5) vgFit(x, freq = NULL, breaks = NULL, paramStart = init, startMethod = "Nelder-Mead", startValues = "SL", method = "Nelder-Mead", hessian […]

Categories
Development

Pie chart with label shown inside and percentage shown outside the pie

I have data like this and I need to draw the pie chart: # Creat bar chart for jam language library(“ggplot2”) # Data visualization library(“dplyr”) # Data manipulation library(“RColorBrewer”) myPalette <- brewer.pal(5, “Set2”) all_languages <- data.frame( Languages = c(“English”, “French”, “Spanish”, “Portuguese”, “Others”), n = c(81, 4, 3, 2, 3), prop = c(87.1, 4.3, 3.2, […]