r/learnprogramming • u/Icy_Winter_7564 • 1d ago
R advice
I’m newish to coding and learning latex and R for a project, how can I neatly display different graphs or information in a report-like style? I have my dataset I just don’t know what to do with it lol. I’m using R studio.
Anything that helped you learn or develop skills please recommend to me, I will appreciate it a lot.
5
Upvotes
3
u/OhTotalMess 1d ago
Honestly, the most important thing in any coding is to define what you want to achieve.
You don't really want to display graphs in a report like style, you ultimately want to convey some information. What about your data do you want to show, to whom, and why?
3
u/BrupieD 1d ago
Yes. There are different report-like formats depending on your needs. A common older one is R markdown (file extension .rmd). Because it is older, there is more documentation and tutorials on R markdown. Quarto (.qmd) is the successor for report-like formats and is easier to use. There is a lot of overlap in how they work. I suggest try to find quarto resources.
Posit is the organization that supports RStudio. They have many video tutorials, including ones on quarto.
As for books, i's common to recommend Hadley Wickham's R for Data Science. But if you're just getting started, I think a more accessible book is R for Everyone.
3
u/ClassKlutzy7633 22h ago
Since you already know some LaTeX, Quarto is a nice fit: you write text and R code chunks in one .qmd file and render it to PDF or HTML, so the plots and tables land right where they belong in the report. Start small with one chunk that loads your data, one ggplot2 chart, and one summary table (knitr::kable or the gt package keeps tables tidy). Set echo: false in the chunk options so readers see the output and not the code. Once that renders, adding more sections is mostly repeating the same pattern.