Posts by Andrei • 121 points
3 posts
-
6
votes1
answer1707
viewsQ: How to Label Distributions in ggplot
I have the following graph of the exponential distribution, I want to put a caption showing which parameter of my exponential. ggplot(data.frame(x=c(0,5)),aes(x))+…
-
3
votes2
answers3637
viewsQ: How to fix the x-axis boundaries in ggplot?
I have the following data: k <- c(294131, 734127, 817963) ano <- c(1991, 2000, 2010) dados <- data.frame(k, ano) I’m doing it this way: ggplot(dados,aes(x=ano,y=k)) + geom_point() +…
-
3
votes1
answer248
viewsQ: How to insert data for graphing in ggplot
I want to make a line chart with ggplot, but this message appears: Error: Don’t know how to add geom_point to a Plot Follow the pattern I’m doing: a<-c(4.9, 4.4, 4.2, 3.9, 3.7, 3.5, 3.1, 3, 2.9,…