Mastering Rstudio by Julian Hillebrand
Author:Julian Hillebrand
Language: eng
Format: epub
Publisher: Packt Publishing
--Bob Rudis (http://hrbrmstr.github.io/metricsgraphics/)
After installing the required htmltools package via CRAN, you need to install the metricsgraphics package from GitHub:
library(devtools) install_github("hrbrmstr/metricsgraphics") library(metricsgraphics)
The following code produces a D3 scatterplot of the mtcars dataset variables, wt and mpg, and adds a least square regression line within an R Markdown document. The interactivity is given by the fact that you can hover over the dots to get the exact values:
--- title: "My Interactive Report" author: "Your Name" output: html_document --- ## Using htmlwidgets & metricsgraphics ```{r} library(htmlwidgets) library(htmltools) library(metricsgraphics) ``` ```{r} # example was taken from http://rpubs.com/hrbrmstr/53741 mtcars %>% mjs_plot(x=wt, y=mpg, width=400, height=300) %>% mjs_point(least_squares=TRUE) %>% mjs_labs(x="Weight of Car", y="Miles per Gallon")
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8303)
Azure Data and AI Architect Handbook by Olivier Mertens & Breght Van Baelen(6752)
Building Statistical Models in Python by Huy Hoang Nguyen & Paul N Adams & Stuart J Miller(6727)
Serverless Machine Learning with Amazon Redshift ML by Debu Panda & Phil Bates & Bhanu Pittampally & Sumeet Joshi(6608)
Data Wrangling on AWS by Navnit Shukla | Sankar M | Sam Palani(6392)
Driving Data Quality with Data Contracts by Andrew Jones(6339)
Machine Learning Model Serving Patterns and Best Practices by Md Johirul Islam(6103)
Learning SQL by Alan Beaulieu(5996)
Weapons of Math Destruction by Cathy O'Neil(5781)
Big Data Analysis with Python by Ivan Marin(5371)
Data Engineering with dbt by Roberto Zagni(4368)
Solidity Programming Essentials by Ritesh Modi(4018)
Time Series Analysis with Python Cookbook by Tarek A. Atwan(3877)
Pandas Cookbook by Theodore Petrou(3584)
Blockchain Basics by Daniel Drescher(3297)
Hands-On Machine Learning for Algorithmic Trading by Stefan Jansen(2908)
Feature Store for Machine Learning by Jayanth Kumar M J(2815)
Learn T-SQL Querying by Pam Lahoud & Pedro Lopes(2797)
Mastering Python for Finance by Unknown(2744)
