CINXE.COM

Plotly r graphing library in R

<!DOCTYPE html> <html> <head> <!-- This page was last built at 2024-11-19 15:59 --> <meta charset="utf-8" /> <link rel="canonical" href="https://plotly.com/r/" /> <link rel="preconnect" href="https://fonts.googleapis.com" /> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> <link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@1,500&display=swap" rel="stylesheet" /> <!-- Media query magic - http://stackoverflow.com/questions/19945658/my-iphone-thinks-its-980px-wide --> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <script src="/all_static/javascripts/algolia/instantsearch.js"></script> <script src="/all_static/javascripts/algolia/polyfill.min.js"></script> <script src="//ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script> <script> const theme = localStorage.getItem('theme'); if (theme === "dark-mode") { var root = document.getElementsByTagName('html')[0]; // '0' to assign the first (and only `HTML` tag) root.setAttribute('class', 'dark-mode'); } </script> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" crossorigin="anonymous"> <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" crossorigin="anonymous"></script> <link href="https://esm.sh/@markprompt/css@0.18.0?css" rel="stylesheet" /> <link href="/all_static/css/markprompt.css" rel="stylesheet" /> <!-- //// Stylesheets --> <!-- Fonts --> <link href="//fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic|Ubuntu+Mono:400,700|Asap" rel="stylesheet" type="text/css" /> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" /> <!-- Main Stylesheets --> <link rel="stylesheet" type="text/css" href="/all_static/css/main.css?version=false" /> <link rel="stylesheet" type="text/css" href="/all_static/css/improve.css?version=2024-11-19-15-59"> <!-- LOCAL DEV STYLESHEET --> <!--<link rel="stylesheet" type="text/css" href="http://api.plotly.dev/all_static/css/main.css">--> <!-- Icon --> <link rel="shortcut icon" href="https://dash.plotly.com/assets/favicon.ico" /> <!-- Google Tags--> <!-- Google Tag Manager Tag --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-N6T2RXG');</script> <!-- META TAGS --> <!-- Capture language --> <!-- Create a title --> <!-- Count number of plots on the page --> <!-- SEO Tags - title, meta_description --> <title> Plotly r graphing library in R </title> <meta name="description" content=Plotly's R graphing library makes interactive, publication-quality graphs. Examples of how to make line plots, scatter plots, area charts, bar charts, error bars, box plots, histograms, heatmaps, subplots, multiple-axes, and 3D (WebGL based) charts.> <!-- Bing tags --> <meta name="msvalidate.01" content="D319859A832F9F1D15A7646E2A42150A" /> <!-- Facebook tags --> <meta property="og:title" content= Plotly r graphing library in R /> <meta property="og:type" content="website"/> <meta property="og:image" content="https://help.plot.ly/images/twitter-default.png"> <meta property="og:description" content=Plotly's R graphing library makes interactive, publication-quality graphs. Examples of how to make line plots, scatter plots, area charts, bar charts, error bars, box plots, histograms, heatmaps, subplots, multiple-axes, and 3D (WebGL based) charts./> <meta property="og:url" /> <meta property="fb:admins" content="1123751525"/> <meta property="fb:admins" content="22418"/> <!-- twitter tags --> <meta name="twitter:card" content="photo" /> <meta name="twitter:title" content= Plotly r graphing library in R /> <meta name="twitter:url" content="https://plotly.com//r/"/> <meta name="twitter:description" content=Plotly's R graphing library makes interactive, publication-quality graphs. Examples of how to make line plots, scatter plots, area charts, bar charts, error bars, box plots, histograms, heatmaps, subplots, multiple-axes, and 3D (WebGL based) charts./> <meta name="twitter:image" content="https://help.plot.ly/images/twitter-default.png"> <meta name="twitter:site" content="@plotlygraphs"/> </head> <body class="darkmode"> <!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N6T2RXG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) --> <div class="menu-mobile"> <div class="switch-mode"> <div class="icon-dark"></div> <div class="switch"></div> <div class="icon-light"></div> </div> <div class="close-menu"></div> <ul> <li><a style="font-weight: bold;" href="https://community.plotly.com/c/plotly-r-matlab-julia-net/29">Forum</a> </li> <li><a style="font-weight: bold;" href="https://plotly.com/get-pricing/">Pricing</a></li> <li><a style="font-weight: bold;" href="https://dash.plotly.com">Dash</a></li> <!--<li><a style="font-weight: bold;" href="http://plotly.cloud">Dash Cloud</a></li>--> </ul> </div> <div class="header-container"> <header class="header-main --default"> <div class="--wrap"> <div class="--wrap-left"> <div class="-identity"> <a href="https://plotly.com/"><img src="/all_static/images/graphing_library_dark.svg" style="height: 30px;" class="logo-dark"></a> <a href="/graphing-libraries/"><img src="/all_static/images/graphing_library.svg" style="height: 30px;" class="logo-white"></a> </div> </div> <div class="--wrap-right"> <nav class="--nav-meta" role="navigation"> <ul> <li class="languages"> <a class="r"> <div class="icon"></div> R </a> <ul> <li> <a href="https://plotly.com/python/" class="python"> <div class="icon"></div>Python (v5.24.1) </a> </li> <li> <a href="https://plotly.com/r/" class="r"> <div class="icon"></div>R </a> </li> <li> <a href="https://plotly.com/julia/" class="julia"> <div class="icon"></div>Julia </a> </li> <li> <a href="https://plotly.com/javascript/" class="plotly_js"> <div class="icon"></div>Javascript (v2.35.2) </a> </li> <li> <a href="https://plotly.com/ggplot2/" class="ggplot2"> <div class="icon"></div>ggplot2 </a> </li> <li> <a href="https://plotly.com/matlab/" class="matlab"> <div class="icon"></div>MATLAB </a> </li> <li> <a href="https://plotly.com/fsharp/" class="fsharp"> <div class="icon"></div>F# </a> </li> <li> <a href="https://dash.plotly.com/" class="dash"> <div class="icon"></div>Dash </a> </li> </ul> </li> <li><a style="font-weight: bold;" href="https://community.plotly.com/c/plotly-r-matlab-julia-net/29">Forum</a> </li> <li><a style="font-weight: bold;" href="https://plotly.com/get-pricing/">Pricing</a></li> <li><a style="font-weight: bold;" href="https://dash.plotly.com">Dash</a></li> <!--<li><a style="font-weight: bold;" href="http://plotly.cloud">Dash Cloud</a></li>--> <iframe src="https://ghbtns.com/github-btn.html?user=plotly&repo=plotly.R&type=star&count=true&size=large" style="padding-top: 5px;" frameborder="0" scrolling="0" width="160px" height="40px"></iframe> </ul> <div class="switch-mode"> <div class="icon-dark"></div> <div class="switch"></div> <div class="icon-light"></div> </div> </nav> </div> <div class="menu-icon"> <span></span><span></span><span></span> </div> </div> </header> </div> <main class="--page page--single --index"> <div class="--wrap"> <!-- aside - Main Sidebar--> <!-- START OF GGPLOT CUSTOM LAYOUT --> <aside class="--sidebar-container"> <div class="--sidebar-fixed reference" data-spy="affix" id="where"> <div class="brand"> <a href="/graphing-libraries/"><img src="/all_static/images/graphing_library.svg" style="height: 30px;"></a> </div> <button id="modal-button" type="button" data-toggle="modal" data-target="#myModal"> <input id="modal-input" style="border-radius: 5px; width: 100%;" type="text" placeholder=" Search..." readonly /> </button> <details style="color: white;margin-top: 20px;" open > <summary>Quick Reference</summary> <nav class="--sidebar-body watch" id="where"> <ul class="--sidebar-list" style="margin-left: 15px;"> <!-- Getting Started --> <li class="--sidebar-item"> <a href="/r/getting-started" class="js-splash--navigation-item">Getting Started</a> </li> <li class="--sidebar-item"> <a href="/r/is-plotly-free" class="js-splash--navigation-item">Is Plotly Free?</a> </li> <!-- Reference Pages --> <li class="--sidebar-item"> <a href="/r/reference/index/" class="js-splash--navigation-item">Figure Reference</a> </li> <!-- Python Specific --> <!-- JS Specific --> <!-- R Specific --> <li class="--sidebar-item"> <a href="/ggplot2/" class="js-splash--navigation-item">ggplot2 integration</a> </li> <li class="--sidebar-item"> <a href="https://plotly.com/dash" class="js-splash--navigation-item">Dash for R</a> </li> <!-- Python/v3 Index Page Specific --> <!-- User Guides --> <!-- Github Links --> <li class="--sidebar-item"> <a target="_blank" href="https://github.com/plotly/plotly.R" class="js-splash--navigation-item">GitHub</a> </li> <li class="--sidebar-item"> <a target="_blank" href="http://community.plotly.com/" class="js-splash--navigation-item">community.plotly.com</a> </li> </ul> </nav> </details> <!-- Examples start --> <details style="color: white;margin-top: 20px;" open> <summary>Examples</summary> <nav class="--sidebar-body watch" id="where"> <ul class="--sidebar-list" style="margin-left: 15px;"> <li class="--sidebar-item"> <a href="/r/plotly-fundamentals/" class="js-splash--navigation-item">Fundamentals</a> </li> <li class="--sidebar-item"> <a href="/r/basic-charts/" class="js-splash--navigation-item">Basic Charts</a> </li> <li class="--sidebar-item"> <a href="/r/statistical-charts/" class="js-splash--navigation-item">Statistical Charts</a> </li> <li class="--sidebar-item"> <a href="/r/scientific-charts/" class="js-splash--navigation-item">Scientific Charts</a> </li> <li class="--sidebar-item"> <a href="/r/financial-charts/" class="js-splash--navigation-item">Financial Charts</a> </li> <li class="--sidebar-item"> <a href="/r/maps/" class="js-splash--navigation-item">Maps</a> </li> <li class="--sidebar-item"> <a href="/r/ai-ml/" class="js-splash--navigation-item">AI and ML</a> </li> <li class="--sidebar-item"> <a href="/r/3d-charts/" class="js-splash--navigation-item">3D Charts</a> </li> <li class="--sidebar-item"> <a href="/r/subplot-charts/" class="js-splash--navigation-item">Subplots</a> </li> <li class="--sidebar-item"> <a href="/r/#animations" class="js-splash--navigation-item">Animations</a> </li> <li class="--sidebar-item"> <a href="/r/#advanced-options" class="js-splash--navigation-item">Advanced</a> </li> <!-- START OF GGPLOT CUSTOM LAYOUT --> <!-- END OF GGPLOT CUSTOM LAYOUT --> </ul> </nav> </details> </div> <a href="https://go.plotly.com/dash-club?utm_source=Dash+Club+2022&utm_medium=graphing_libraries&utm_content=sidebar" target="_blank"> <img src="https://images.prismic.io/plotly-marketing-website-2/7953022d-73b1-481e-8f6b-9ce9bd80e588_Dash+Club.jpeg?auto=compress,format" style="width: 200px; height: 200px; position: fixed; bottom: 10px; left: 50px" alt="Sign up to Dash Club to get two free cheat sheets as well as tips and tricks, community apps, and deep dives delivered every two month"> </a> </aside> <!-- Main--> <section class="--page-body --tutorial-index"> <div class="nav-breadcrumb-container"> <div> <div class="breadcrumb-nav"> </div> </div> </div> <!-- Start pulling content --> <header class="--welcome"> <div class="--welcome-body"> <!--div.--wrap-inner--> <div class="--title"> <div class="--category-img"> <img src="../all_static/images/r.png" alt="" /> </div> <div class="--body"> <h1>Plotly R Open Source Graphing Library</h1> <p>Plotly's R graphing library makes interactive, publication-quality graphs. Examples of how to make line plots, scatter plots, area charts, bar charts, error bars, box plots, histograms, heatmaps, subplots, multiple-axes, and 3D (WebGL based) charts. <br>Plotly.R is <a href="/r/is-plotly-free">free and open source</a> and you can <a target="_blank" href="https://github.com/plotly/plotly.R">view the source, report issues or contribute on GitHub</a>. </p> <div class="dash-plug"> <p>Deploy R AI Dash apps on private Kubernetes clusters: <a href="/get-pricing/">Pricing</a> &nbsp;|&nbsp; <a href="/get-demo/">Demo</a> &nbsp;|&nbsp; <a href="/dash/">Overview</a> &nbsp;|&nbsp; <a href="/consulting-and-oem/">AI App Services</a> </p> </div> </div> </div> </div> </header> <section class="--tutorial-section"> <header class="--section-header"> <a href="#fundamentals" name="fundamentals" id="fundamentals">Fundamentals</a> <a href="/r/plotly-fundamentals" class="langindexlink">More Fundamentals &raquo;</a> </header> <section class="--grid"> <ul class="--grid-list"> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/violin.jpg);" class="--grid-item"> <a href="/r/figure-structure/"> <div class="--item-meta"><span>The Figure Data Structure</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/violin.jpg" alt="The Figure Data Structure"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/creating-and-updating-figures.png);" class="--grid-item"> <a href="/r/creating-and-updating-figures/"> <div class="--item-meta"><span>Creating and Updating Figures</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/creating-and-updating-figures.png" alt="Creating and Updating Figures"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/displaying-figures.png);" class="--grid-item"> <a href="/r/renderers/"> <div class="--item-meta"><span>Displaying Figures</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/displaying-figures.png" alt="Displaying Figures"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/static-image-export.png);" class="--grid-item"> <a href="/r/static-image-export/"> <div class="--item-meta"><span>Exporting Graphs as Static Images</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/static-image-export.png" alt="Exporting Graphs as Static Images"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/modebar-icons.png);" class="--grid-item"> <a href="/r/configuration-options/"> <div class="--item-meta"><span>Configuration</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/modebar-icons.png" alt="Configuration"> </div> </a> </li> </ul> </section> </section> <section class="--tutorial-section"> <header class="--section-header"> <a href="#basic-charts" id="basic-charts">Basic Charts</a> <a href="/r/basic-charts/" class="langindexlink">More Basic Charts &raquo;</a> </header> <section class="--grid"> <ul class="--grid-list"> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/line-and-scatter.jpg);" class="--grid-item"> <a href="/r/line-and-scatter/"> <div class="--item-meta"><span>Scatter and Line Plots</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/line-and-scatter.jpg" alt="Scatter and Line Plots"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/line-plot.jpg);" class="--grid-item"> <a href="/r/line-charts/"> <div class="--item-meta"><span>Line Plots</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/line-plot.jpg" alt="Line Plots"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/bar.jpg);" class="--grid-item"> <a href="/r/bar-charts/"> <div class="--item-meta"><span>Bar Charts</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/bar.jpg" alt="Bar Charts"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/pie-chart.jpg);" class="--grid-item"> <a href="/r/pie-charts/"> <div class="--item-meta"><span>Pie Charts</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/pie-chart.jpg" alt="Pie Charts"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/bubble.jpg);" class="--grid-item"> <a href="/r/bubble-charts/"> <div class="--item-meta"><span>Bubble Charts</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/bubble.jpg" alt="Bubble Charts"> </div> </a> </li> </ul> </section> </section> <section class="--tutorial-section"> <header class="--section-header"> <a href="#statistical-charts" id="statistical-charts">Statistical Charts</a> <a href="/r/statistical-charts/" class="langindexlink">More Statistical Charts &raquo;</a> </header> <section class="--grid"> <ul class="--grid-list"> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/histogram2d.jpg);" class="--grid-item"> <a href="/r/2D-Histogram/"> <div class="--item-meta"><span>2D Histograms</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/histogram2d.jpg" alt="2D Histograms"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/box.jpg);" class="--grid-item"> <a href="/r/box-plots/"> <div class="--item-meta"><span>Box Plots</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/box.jpg" alt="Box Plots"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/histogram.jpg);" class="--grid-item"> <a href="/r/histograms/"> <div class="--item-meta"><span>Histograms</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/histogram.jpg" alt="Histograms"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/error-bar.jpg);" class="--grid-item"> <a href="/r/error-bars/"> <div class="--item-meta"><span>Error Bars</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/error-bar.jpg" alt="Error Bars"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/violin.jpg);" class="--grid-item"> <a href="/r/violin/"> <div class="--item-meta"><span>Violin Plots</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/violin.jpg" alt="Violin Plots"> </div> </a> </li> </ul> </section> </section> <section class="--tutorial-section" id="scientific-charts"> <header class="--section-header"> <a href="#scientific-charts">Scientific Charts</a> <a href="/r/scientific-charts/" class="langindexlink">More Scientific Charts &raquo;</a> </header> <section class="--grid"> <ul class="--grid-list"> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/log.jpg);" class="--grid-item"> <a href="/r/log-plot/"> <div class="--item-meta"><span>Log Plots</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/log.jpg" alt="Log Plots"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/contour.jpg);" class="--grid-item"> <a href="/r/contour-plots/"> <div class="--item-meta"><span>Contour Plots</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/contour.jpg" alt="Contour Plots"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/heatmap.jpg);" class="--grid-item"> <a href="/r/heatmaps/"> <div class="--item-meta"><span>Heatmaps</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/heatmap.jpg" alt="Heatmaps"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/net.jpg);" class="--grid-item"> <a href="/r/network-graphs/"> <div class="--item-meta"><span>Network Graph</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/net.jpg" alt="Network Graph"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/ternary-contour.jpg);" class="--grid-item"> <a href="/r/ternary-contour/"> <div class="--item-meta"><span>Ternary Contour Plot</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/ternary-contour.jpg" alt="Ternary Contour Plot"> </div> </a> </li> </ul> </section> </section> <section class="--tutorial-section" id="financial-charts"> <header class="--section-header"> <a href="#financial-charts">Financial Charts</a> <a href="/r/financial-charts/" class="langindexlink">More Financial Charts &raquo;</a> </header> <section class="--grid"> <ul class="--grid-list"> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/time-series.jpg);" class="--grid-item"> <a href="/r/time-series/"> <div class="--item-meta"><span>Time Series and Date Axes</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/time-series.jpg" alt="Time Series and Date Axes"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/candlestick.jpg);" class="--grid-item"> <a href="/r/candlestick-charts/"> <div class="--item-meta"><span>Candlestick Charts</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/candlestick.jpg" alt="Candlestick Charts"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/ohlc.jpg);" class="--grid-item"> <a href="/r/ohlc-charts/"> <div class="--item-meta"><span>OHLC Charts</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/ohlc.jpg" alt="OHLC Charts"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/waterfall-charts.jpg);" class="--grid-item"> <a href="/r/waterfall-charts/"> <div class="--item-meta"><span>Waterfall Charts</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/waterfall-charts.jpg" alt="Waterfall Charts"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/funnel.jpg);" class="--grid-item"> <a href="/r/funnel-charts/"> <div class="--item-meta"><span>Funnel Charts</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/funnel.jpg" alt="Funnel Charts"> </div> </a> </li> </ul> </section> </section> <section class="--tutorial-section" id="maps"> <header class="--section-header"> <a href="#maps">Maps</a> <a href="/r/maps/" class="langindexlink">More Maps &raquo;</a> </header> <section class="--grid"> <ul class="--grid-list"> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/choropleth.jpg);" class="--grid-item"> <a href="/r/choropleth-maps/"> <div class="--item-meta"><span>Choropleth Maps</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/choropleth.jpg" alt="Choropleth Maps"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/scatter-plot-on-maps.jpg);" class="--grid-item"> <a href="/r/scatter-plots-on-maps/"> <div class="--item-meta"><span>Scatter Plots on Maps</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/scatter-plot-on-maps.jpg" alt="Scatter Plots on Maps"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/mapbox-density.png);" class="--grid-item"> <a href="/r/mapbox-density-heatmaps/"> <div class="--item-meta"><span>Mapbox Density</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/mapbox-density.png" alt="Mapbox Density"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/flight-paths.jpg);" class="--grid-item"> <a href="/r/lines-on-maps/"> <div class="--item-meta"><span>Lines on Maps</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/flight-paths.jpg" alt="Lines on Maps"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/mapbox-layers.png);" class="--grid-item"> <a href="/r/mapbox-layers/"> <div class="--item-meta"><span>Mapbox Layers</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/mapbox-layers.png" alt="Mapbox Layers"> </div> </a> </li> </ul> </section> </section> <section class="--tutorial-section"> <header class="--section-header"> <a href="#ai_ml" name="ai_ml" id="ai_ml">Artificial Intelligence and Machine Learning</a> <a href="/r/ai-ml/" class="langindexlink">More AI and ML &raquo;</a> </header> <section class="--grid"> <ul class="--grid-list"> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/ml-regression.png);" class="--grid-item"> <a href="/r/ml-regression/"> <div class="--item-meta"><span>ML Regression</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/ml-regression.png" alt="ML Regression"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/knn-classification.png);" class="--grid-item"> <a href="/r/knn-classification/"> <div class="--item-meta"><span>kNN Classification</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/knn-classification.png" alt="kNN Classification"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/ml-roc-pr.png);" class="--grid-item"> <a href="/r/roc-and-pr-curves/"> <div class="--item-meta"><span>ROC and PR Curves</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/ml-roc-pr.png" alt="ROC and PR Curves"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/ml-pca.png);" class="--grid-item"> <a href="/r/pca-visualization/"> <div class="--item-meta"><span>PCA Visualization</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/ml-pca.png" alt="PCA Visualization"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/tsne-umap-projections.png);" class="--grid-item"> <a href="/r/t-sne-and-umap-projections/"> <div class="--item-meta"><span>t-SNE and UMAP projections</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/tsne-umap-projections.png" alt="t-SNE and UMAP projections"> </div> </a> </li> </ul> </section> </section> <section class="--tutorial-section" id="3d-charts"> <header class="--section-header"> <a href="#3d-charts">3D Charts</a> <a href="/r/3d-charts/" class="langindexlink">More 3D Charts &raquo;</a> </header> <section class="--grid"> <ul class="--grid-list"> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/3d-scatter.jpg);" class="--grid-item"> <a href="/r/3d-scatter-plots/"> <div class="--item-meta"><span>3D Scatter Plots</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/3d-scatter.jpg" alt="3D Scatter Plots"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/3d-line.jpg);" class="--grid-item"> <a href="/r/3d-line-plots/"> <div class="--item-meta"><span>3D Line Plots</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/3d-line.jpg" alt="3D Line Plots"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/3d-surface.jpg);" class="--grid-item"> <a href="/r/3d-surface-plots/"> <div class="--item-meta"><span>3D Surface Plots</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/3d-surface.jpg" alt="3D Surface Plots"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/3d-mesh.jpg);" class="--grid-item"> <a href="/r/3d-mesh/"> <div class="--item-meta"><span>3D Mesh Plots</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/3d-mesh.jpg" alt="3D Mesh Plots"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/3dcone.png);" class="--grid-item"> <a href="/r/cone-plot/"> <div class="--item-meta"><span>3D Cone Plots</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/3dcone.png" alt="3D Cone Plots"> </div> </a> </li> </ul> </section> </section> <section class="--tutorial-section" id="multiple-axes-subplots-and-insets"> <header class="--section-header"> <a href="#subplot-charts" name="subplot-charts" id="subplot-charts">Subplots</a> </header> <section class="--grid"> <ul class="--grid-list"> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/map-subplots.jpg);" class="--grid-item"> <a href="/r/map-subplots-and-small-multiples/"> <div class="--item-meta"><span>Map Subplots And Small Multiples</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/map-subplots.jpg" alt="Map Subplots And Small Multiples"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/insets.jpg);" class="--grid-item"> <a href="/r/insets/"> <div class="--item-meta"><span>Inset Plots</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/insets.jpg" alt="Inset Plots"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/3d-subplots.jpg);" class="--grid-item"> <a href="/r/3d-subplots/"> <div class="--item-meta"><span>3D Subplots</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/3d-subplots.jpg" alt="3D Subplots"> </div> </a> </li> </ul> </section> </section> <section class="--tutorial-section"> <header class="--section-header"> <a href="#transforms" name="transforms" id="transforms">Transforms</a> </header> <section class="--grid"> <ul class="--grid-list"> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/filter.jpg);" class="--grid-item"> <a href="/r/filter/"> <div class="--item-meta"><span>Filter</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/filter.jpg" alt="Filter"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/groupby.jpg);" class="--grid-item"> <a href="/r/group-by/"> <div class="--item-meta"><span>Group By</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/groupby.jpg" alt="Group By"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/aggregations.jpg);" class="--grid-item"> <a href="/r/aggregations/"> <div class="--item-meta"><span>Aggregations</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/aggregations.jpg" alt="Aggregations"> </div> </a> </li> </ul> </section> </section> <section class="--tutorial-section" id="controls"> <header class="--section-header"> <a href="#controls">Add Custom Controls</a> </header> <section class="--grid"> <ul class="--grid-list"> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/custom-buttons.jpg);" class="--grid-item"> <a href="/r/custom-buttons/"> <div class="--item-meta"><span>Buttons</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/custom-buttons.jpg" alt="Buttons"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/dropdown.jpg);" class="--grid-item"> <a href="/r/dropdowns/"> <div class="--item-meta"><span>Dropdown Events</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/dropdown.jpg" alt="Dropdown Events"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/sliders.jpg);" class="--grid-item"> <a href="/r/range-slider/"> <div class="--item-meta"><span>Range Sliders and Selectors</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/sliders.jpg" alt="Range Sliders and Selectors"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/slider2017.gif);" class="--grid-item"> <a href="/r/sliders/"> <div class="--item-meta"><span>Sliders</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/slider2017.gif" alt="Sliders"> </div> </a> </li> </ul> </section> </section> <section class="--tutorial-section" id="animations"> <header class="--section-header"> <a href="#animations">Animations</a> </header> <section class="--grid"> <ul class="--grid-list"> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/animations.gif);" class="--grid-item"> <a href="/r/animations/"> <div class="--item-meta"><span>Intro to Animations</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/animations.gif" alt="Intro to Animations"> </div> </a> </li> <li style="background-image: url(https://images.plot.ly/plotly-documentation/thumbnail/apple_stock_animation.gif);" class="--grid-item"> <a href="/r/cumulative-animations/"> <div class="--item-meta"><span>Cumulative Animations</span></div> <div class="--item-image"> <span>View Tutorial</span> <img src="https://images.plot.ly/plotly-documentation/thumbnail/apple_stock_animation.gif" alt="Cumulative Animations"> </div> </a> </li> </ul> </section> </section> <section class="--tutorial-section no-image" id="advanced-options"> <header class="--section-header"> <a href="#advanced-options">Advanced</a> </header> <section class="--grid"> <ul class="--grid-list"> <li class="--grid-item"> <a href="/r/plot-data-from-csv/"> <div class="--item-meta"><span>Plot CSV Data</span></div> </a> </li> </ul> </section> </section> <!--End content --> </section> </div> </main> <footer class="--footer-main"> <section class="--footer-top"> <div class="--wrap"> <ul class="--footer-body"> <li class="--footer-column"> <h6 style="color:#119dff" class="--footer-heading">JOIN OUR MAILING LIST</h6>&#x9;&#x9;&#x9; <ul> &#x9;&#x9;&#x9;&#x9; <li> <p class="subscribe-text"> Sign up to stay in the loop with all things Plotly — from Dash Club to product updates, webinars, and more!</p> <a href="https://go.plot.ly/subscription" class="subscribe-button" target="_blank"> Subscribe </a> </li> </ul> </li> &#x9;&#x9; <li class="--footer-column"> <h6 style="color:#e763fa" class="--footer-heading">Products</h6>&#x9;&#x9;&#x9; <ul> <li><a href="https://plotly.com/dash/" target="_self">Dash</a></li> &#x9;&#x9;&#x9;&#x9; &#x9;&#x9;&#x9;&#x9; <li><a href="https://plotly.com/consulting-and-oem/" target="_self">Consulting and Training</a></li> </ul> </li> &#x9;&#x9; <li class="--footer-column"> <h6 style="color:#636efa" class="--footer-heading">Pricing</h6>&#x9;&#x9;&#x9; <ul> <li><a href="https://plotly.com/get-pricing/" target="_self">Enterprise Pricing</a></li> &#x9;&#x9;&#x9;&#x9; </ul> </li> &#x9;&#x9; <li class="--footer-column"> <h6 style="color:#00cc96" class="--footer-heading">About Us</h6>&#x9;&#x9;&#x9; <ul> <li><a href="https://plotly.com/careers" target="_self">Careers</a></li> &#x9;&#x9;&#x9;&#x9; <li><a href="https://plotly.com/resources/" target="_self">Resources</a></li> &#x9;&#x9;&#x9;&#x9; <li><a href="https://medium.com/@plotlygraphs" target="_self">Blog</a></li> &#x9;&#x9;&#x9;&#x9; </ul> </li> &#x9;&#x9; <li class="--footer-column"> <h6 style="color:#EF553B" class="--footer-heading">Support</h6>&#x9;&#x9;&#x9; <ul> <li><a href="https://community.plot.ly/" target="_self">Community Support</a></li> &#x9;&#x9;&#x9;&#x9; <li><a href="https://plotly.com/graphing-libraries" target="_self">Documentation</a></li> &#x9;&#x9;&#x9;&#x9; </ul> </li> </ul> </div> </section> <section class="--footer-meta"> <div class="--wrap"> <div class="left"> <article class="--copyright">Copyright &copy; 2024 Plotly. All rights reserved.</article> </div> <div class="right"> <article class="--tos"><a href="https://community.plotly.com/tos" target="_blank">Terms of Service</a> </article> <article class="--privacy"><a href="https://plotly.com/privacy/" target="_blank">Privacy Policy</a> </article> </div> </div> <div id="markprompt" /> </section> </footer> <div class="modal" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content" id="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button> <span style="float: left; padding-top:13px; padding-right:10px;"><i class="fa fa-search fa-lg"></i></span> <input id="search-input" class="search-input" type="text" placeholder="" /> </div> <div class="modal-body" id="modal-body"> <div id="search-results" class="search-results"> <div id="primary-search-results" class="primary-search-results"></div> <div id="schema-search-results" class="schema-search-results"></div> </div> </div> </div> </div> </div> <script> window.plotly_doc_language = "r"; </script> <!-- ALGOLIA SEARCH --> <script> window.ALGOLIA_CONFIG = { 'applicationId': '7EK9KHJW8M', 'indexName': 'r_docs', 'apiKey': '4dae07ded6a721de73bde7356eec9280', 'baseurl': '/' } </script> <script id="algolia__template" type="text/template"> <div class="algolia__result"> <a class="algolia__result-link" onClick="$('#myModal').modal('toggle')" href="/{{ permalink }}">{{{ _highlightResult.name.value }}}</a> <div class="algolia__result-text">{{{ _highlightResult.description.value }}}</div> </div> </script> <script id="algolia__secondary-template" type="text/template"> <div class="algolia__secondary-result"> <a class="algolia__result-link" onClick="$('#myModal').modal('toggle')" href="/{{ permalink }}">{{{ _highlightResult.name.value }}}</a> <div class="algolia__result-text">{{{ _highlightResult.description.value }}}</div> </div> </script> <script id="algolia__template--no-results" type="text/template">No results found.</script> <script src="//cdn.jsdelivr.net/hogan.js/3.0.2/hogan.min.js"></script> <script src="/all_static/javascripts/algolia/algolia.js"></script> <!-- Hash offset Script --> <script src="/all_static//javascripts/hash_offset.js"></script> <!-- Image Hover Script --> <script src="/all_static/javascripts/imghover.js"></script> <script src="/all_static/javascripts/improve.js?version=2024-11-19-15-59"></script> <!-- code highlighting --> <!--<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/highlight.min.js"></script> <script src="/all_static/javascripts/highlight.line-numbers.js"></script>--> <script src="/all_static/javascripts/highlight/highlight.min.js"></script> <script src="/all_static/javascripts/highlight/julia.min.js"></script> <script src="/all_static/javascripts/highlight.line-numbers.js"></script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10