Especially useful for operating on data by categories. Next you can run Yihuiâs code, which is copied below:The essential data-munging R package when working with data frames. Installing Rattle on MacOS 10.11 (or above) Guys, great news Follow Yihuiâs comment below and use the 20-line code to install Rattle without any effort Just copy and paste the codes in R/RStudio - it just works like a charm Note that you need to install Homebrew first (step 3 below).
![]() ![]() CRAN.See the testing chapter of Hadley Wickham's book on R packages.Popular package for heavy-duty data wrangling and computation. CRAN.Package that makes it easy to write unit tests for your R code. CRAN.Intuitive data validation based on rules you can define, save and re-use. As a placeholder for the original object being operated upon. CRAN.Myjson % symbol for chaining R operations, but it's got other useful operators such as %% for mutating a data frame in place and and. Some of my favorites: str_pad and str_trim. Some are similar to existing base R functions but in a more standard format, including working with regular expressions. CRAN.Data.table in 5 minutes video, The ultimate data.table cheat sheet, Intro vignetteNumerous functions for text manipulation. Package In R Series Data FormatsCRAN.Super easy way to convert data between different R time-series data formats: xts, data frame, zoo, tsibble, and more. CRAN.Robust package with a slew of functions for dealing with time series data I like the handy rollmean function with its align=right and fill=NA options for calculating moving averages. CRAN.Mdy("") + months(1) More examples in the package vignetteGarrett Grolemund, Hadley Wickham & othersNot sure where to get started looking at a data set? Want to get a basic handle on that data without running multiple commands like str() and plot()? DataExplorer attempts to offer one-click report generation to show and visualize basics about a data set, such as distributions and missing data. CRAN.See the Minimal Examples knitr page and RStudio's R Markdown page.Yihui Xie & others (knitr), RStudio (rmarkdown)RStudio add-in offers a menu for R Markdown formatting commands, so you no longer need to remember and/or type code for things like making an HTML list or embedding a YouTube video. A must-have if you're interested in reproducible research and automating the journey from data analysis to report creation. CRAN.Add R to a markdown document and easily generate reports in HTML, Word and other formats. CRAN.My_doc % body_add_img(src = myplot) The package website has many more examples.While RStudio has since added a list-viewing option, this HTML widget still offers an elegant way to view complex nested lists within R. GitHub.Import and edit Microsoft Word and PowerPoint documents, making it easy to add R-generated analysis and visualizations to existing as well as new reports and presentations. GitHub.Another useful RStudio add-in for R Markdown, this helps you generate YML headers with proper format. What charger for mac book pro 2012CRAN.D % ggiraph(code = print(my_gg), width =. Basic graphs have a distinctive look which may not be for everyone, but it's full-featured, relatively easy to learn (especially if you know ggplot2) and includes a ggplotly() function to turn graphs created with ggplot2 interactive. CRAN.See this blog post by RStudio's Edgar Ruiz for several useful examples.R interface to the Plotly JavaScript library that was open-sourced in late 2015. GitHub.Adds some design functionality to base ggplot2 including easy labeling of plot groups. Plot_layout() adds ability to set columns, rows, and relative sizes of each component graphic. CRAN.Qplot(factor(myfactor), data=mydf, geom="bar", fill=factor(myfactor)) See my searchable ggplot2 cheat sheet and time-saving code snippets.Easily combine ggplot2 plots and keep the new, merged plot a ggplot2 object. However, it does much more than that, including line and bar charts with legends and tooltips. CRAN.Mydata %>% e_charts(xcol)%>% e_line(ycol) Plot in R with echarts4r or the package siteThis html widget library is especially useful for scatterplots where you want to view multiple regression options. CRAN.Robust R wrapper for the echarts JavaScript library. CRAN.Create HTML/JavaScript graphs of time series - one-line command if your data is an xts object. It's a useful tool for exploring different color palettes and themes, even if you're comfortable creating your visualizations directly in R. And, it generates codes for the graph you create with the GUI.
0 Comments
Leave a Reply. |
AuthorKellie ArchivesCategories |