Hello! I have a problem with my code, I need to round the number that are in my variable "ratio", here is the ggplot code
mydata <- (....source code)
ui <- (nothing special)
plotouput ("mydata")
server <- blablabla
output$mydata <- renderPlot ({
ggplot(mydata %>% filter(chart_name == 'AppDownloadUsage'), aes(x = chart_name, y = ratio, fill = slice_name)) +
geom_bar(colour="black",stat = "identity")+
geom_text(aes(label= ratio, position = "stack")
How can I round the number of my variable ratio?
Thank you very much for the help