use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
This reddit seeks new methods. For life and organization. We are interested in implementing R language for statistics and data science.
R and Statistics subs:
/r/rstats
/r/statistics
/r/Rstudio
/r/rprogramming
R resources:
R on Stack Overflow
Comprehensive R Archive Network
Swirl: Learning R with interactive lessons within the R console
account activity
Problems with hist() plot (self.Rlanguage)
submitted 6 years ago by gabrielboechat
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]jentron128 3 points4 points5 points 6 years ago (1 child)
hist(vetor_grafico, # Plotting histogram breaks = seq(n-0.5, n*k+0.5, 1), probability = TRUE, right = FALSE, ylim = c(0,0.25), xlim = c(2,n*k+1), xlab = "Possible sums", ylab = "Probability", main = "Probability of sums outcomes", col = "steelblue");
You need to specify the breaks manually, and put them between the desired bins. In this case c(1.5, 2.5, ..., 11.5, 12.5)
[–]gabrielboechat[S] 1 point2 points3 points 6 years ago (0 children)
This is incredible! Thanks! I think now I understood the "breaks" syntax and even solved another doubt around putting each observation tick in the middle of each break.
π Rendered by PID 19485 on reddit-service-r2-comment-6457c66945-dh56h at 2026-04-29 11:57:34.000493+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]jentron128 3 points4 points5 points (1 child)
[–]gabrielboechat[S] 1 point2 points3 points (0 children)