CINXE.COM
Axes in ggplot2
<!DOCTYPE html> <html> <head> <!-- This page was last built at 2025-03-21 13:39 --> <meta charset="utf-8" /> <link rel="canonical" href="https://plotly.com/ggplot2/axes/" /> <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" /> <!-- code highlighting --> <!-- <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/highlight.min.js"></script> <script> hljs.initHighlightingOnLoad(); </script>--> <!-- Mathjax --> <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML"></script> <!-- Plotly.js hardcoded to 1.x due to Plotly.plot() --> <script src="https://cdn.plot.ly/plotly-1.58.4.min.js"></script> <script src="/all_static/r_files/r_dependencies.js"></script> <!-- //// Stylesheets --> <style> .mcode { border: 1px solid #cfcfcf; border-radius: 2px; background: #f7f7f7; padding: 10px; } .wcode { border: 1px solid #cfcfcf; border-radius: 2px; background: #ffffff; padding: 10px; } </style> <!-- 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=2025-03-21-13-39"> <!-- 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> Axes in ggplot2 </title> <meta name="description" content="Over 10 examples of Axes including changing color, size, log axes, and more in ggplot2."> <!-- Bing tags --> <meta name="msvalidate.01" content="D319859A832F9F1D15A7646E2A42150A" /> <!-- Facebook tags --> <meta property="og:title" content= Axes in ggplot2 /> <meta property="og:type" content="website"/> <meta property="og:image" content="https://help.plot.ly/images/twitter-default.png"> <meta property="og:description" content="Over 10 examples of Axes including changing color, size, log axes, and more in ggplot2."/> <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= Axes in ggplot2 /> <meta name="twitter:url" content="https://plotly.com/ggplot2/axes/"/> <meta name="twitter:description" content="Over 10 examples of Axes including changing color, size, log axes, and more in ggplot2."/> <meta name="twitter:image" content="https://help.plot.ly/images/twitter-default.png"> <meta name="twitter:site" content="@plotlygraphs"/> </head> <body data-spy="scroll" data-target=".watch" style="position:relative;" 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) --> <!--[if lt IE 10]> <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p> <![endif]--> <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="ggplot2"> <div class="icon"></div> ggplot2 </a> <ul> <li> <a href="https://plotly.com/python/" class="python"> <div class="icon"></div>Python (v6.0.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 (v3.0.1) </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 --> <!-- START OF GGPLOT CUSTOM LAYOUT --> <!-- 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;" > <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="/ggplot2/getting-started" class="js-splash--navigation-item">Getting Started</a> </li> <li class="--sidebar-item"> <a href="/ggplot2/is-plotly-free" class="js-splash--navigation-item">Is Plotly Free?</a> </li> <!-- Reference Pages --> <!-- Python Specific --> <!-- JS Specific --> <!-- R Specific --> <!-- 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> <details style="color: white;margin-top: 20px;" open> <summary>On This Page</summary> <nav class="--sidebar-body watch" id="where"> <ul class="--sidebar-list" id="nav_header_insertion_list"></ul> </nav> </details> </div> <a href="https://go.plotly.com/elevate-your-analytics?utm_source=Webinar:%20Dash%20Enterprise%205.7&utm_medium=graphing_libraries&utm_content=sidebar" target="_blank"> <img src="https://images.prismic.io/plotly-marketing-website-2/Z9mL0DiBA97Gimoh_Square_ads.jpg?auto=format,compress" style="width: 200px; height: 200px; position: fixed; bottom: 10px; left: 50px" alt="Sign up for the upcoming webinar: Elevate Your Analytics with Plotly Dash Enterprise 5.7"> </a> </aside> <!-- Main--> <section class="--page-body --tutorial-index --base"> <header class="--welcome"> <div class="--welcome-body"> <!--div.--wrap-inner--> <div class="--title"> <div class="--body"> <div class="nav-breadcrumb-container"> <div> <div class="breadcrumb-nav"> <a href="/ggplot2"> Ggplot2 </a> > <a href="/ggplot2/plotly-fundamentals">Fundamentals</a> > <span>Axes</span> </div> </div> <div class="nav-breadcrumb-right"> <div class="--fork"> <a id="forklink" href="https://github.com/plotly/plotly.r-docs/edit/master/ggplot2/2021-08-04-axes.Rmd"> <div class="icon"> <svg style="width:20px;height:20px" viewbox="0 0 24 24"> <path fill="#000000" d="M2.6,10.59L8.38,4.8L10.07,6.5C9.83,7.35 10.22,8.28 11,8.73V14.27C10.4,14.61 10,15.26 10,16A2,2 0 0,0 12,18A2,2 0 0,0 14,16C14,15.26 13.6,14.61 13,14.27V9.41L15.07,11.5C15,11.65 15,11.82 15,12A2,2 0 0,0 17,14A2,2 0 0,0 19,12A2,2 0 0,0 17,10C16.82,10 16.65,10 16.5,10.07L13.93,7.5C14.19,6.57 13.71,5.55 12.78,5.16C12.35,5 11.9,4.96 11.5,5.07L9.8,3.38L10.59,2.6C11.37,1.81 12.63,1.81 13.41,2.6L21.4,10.59C22.19,11.37 22.19,12.63 21.4,13.41L13.41,21.4C12.63,22.19 11.37,22.19 10.59,21.4L2.6,13.41C1.81,12.63 1.81,11.37 2.6,10.59Z"> </path> </svg> </div> <span>Suggest an edit to this page</span> </a> </div> </div> </div> <h1> Axes in ggplot2 </h1> <p>How to work with Axes in ggplot2 with Plotly. </p> <br> <!-- <div class="db-client-lib"> <label> This page in another language </label> <div class="list-lib-wrap"> <div class="list-lib"> <a href=" /r/axes/" class="list-lib-item r"> <div class="item-icon"> </div> <p class="item-language"> R </p> </a> <a href=" /julia/axes/" class="list-lib-item julia"> <div class="item-icon"> </div> <p class="item-language"> Julia </p> </a> <a href=" /matlab/axes/" class="list-lib-item matlab"> <div class="item-icon"> </div> <p class="item-language"> MATLAB® </p> </a> <a href=" /ggplot2/axes/" class="current list-lib-item ggplot2"> <div class="item-icon"> </div> <p class="item-language"> ggplot2 </p> </a> <a href=" /python/axes/" class="list-lib-item python"> <div class="item-icon"> </div> <p class="item-language"> Python </p> </a> </div> </div> </div> --> <details> <summary><span style="cursor: pointer; color: #506784 !important">New to Plotly?</span></summary> <p>Plotly is a <a href="/r/is-plotly-free/">free and open-source</a> graphing library for R. We recommend you read our <a href="/r/getting-started/">Getting Started guide</a> for the latest installation or upgrade instructions, then move on to our <a href="/r/plotly-fundamentals/">Plotly Fundamentals tutorials</a> or dive straight in to some <a href="/r/basic-charts/">Basic Charts tutorials</a>.</p> </details> </div> </div> </div> </header> <!-- Start Plotly Basics Section --> <section class="tutorial-content"> <h2>Default plot</h2> <div class="highlight"><pre><code class="language-r" data-lang="r"><span class="n">library</span><span class="p">(</span><span class="n">plotly</span><span class="p">)</span><span class="w"> </span><span class="n">library</span><span class="p">(</span><span class="n">ggplot2</span><span class="p">)</span><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o"><-</span><span class="w"> </span><span class="n">ggplot</span><span class="p">(</span><span class="n">mtcars</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">geom_point</span><span class="p">(</span><span class="n">aes</span><span class="p">(</span><span class="n">disp</span><span class="p">,</span><span class="w"> </span><span class="n">mpg</span><span class="p">))</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">scale_x_continuous</span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s2">"Displacement"</span><span class="p">)</span><span class="w"> </span><span class="n">ggplotly</span><span class="p">(</span><span class="n">p</span><span class="p">)</span><span class="w"> </span></code></pre></div> <div class="plotly html-widget html-fill-item" id="htmlwidget-e51bfdc1d249125a663f" style="width:672px;height:480px;"></div> <script type="application/json" data-for="htmlwidget-e51bfdc1d249125a663f">{"x":{"data":[{"x":[160,160,108,258,360,225,360,146.69999999999999,140.80000000000001,167.59999999999999,167.59999999999999,275.80000000000001,275.80000000000001,275.80000000000001,472,460,440,78.700000000000003,75.700000000000003,71.099999999999994,120.09999999999999,318,304,350,400,79,120.3,95.099999999999994,351,145,301,121],"y":[21,21,22.800000000000001,21.399999999999999,18.699999999999999,18.100000000000001,14.300000000000001,24.399999999999999,22.800000000000001,19.199999999999999,17.800000000000001,16.399999999999999,17.300000000000001,15.199999999999999,10.4,10.4,14.699999999999999,32.399999999999999,30.399999999999999,33.899999999999999,21.5,15.5,15.199999999999999,13.300000000000001,19.199999999999999,27.300000000000001,26,30.399999999999999,15.800000000000001,19.699999999999999,15,21.399999999999999],"text":["disp: 160.0<br />mpg: 21.0","disp: 160.0<br />mpg: 21.0","disp: 108.0<br />mpg: 22.8","disp: 258.0<br />mpg: 21.4","disp: 360.0<br />mpg: 18.7","disp: 225.0<br />mpg: 18.1","disp: 360.0<br />mpg: 14.3","disp: 146.7<br />mpg: 24.4","disp: 140.8<br />mpg: 22.8","disp: 167.6<br />mpg: 19.2","disp: 167.6<br />mpg: 17.8","disp: 275.8<br />mpg: 16.4","disp: 275.8<br />mpg: 17.3","disp: 275.8<br />mpg: 15.2","disp: 472.0<br />mpg: 10.4","disp: 460.0<br />mpg: 10.4","disp: 440.0<br />mpg: 14.7","disp: 78.7<br />mpg: 32.4","disp: 75.7<br />mpg: 30.4","disp: 71.1<br />mpg: 33.9","disp: 120.1<br />mpg: 21.5","disp: 318.0<br />mpg: 15.5","disp: 304.0<br />mpg: 15.2","disp: 350.0<br />mpg: 13.3","disp: 400.0<br />mpg: 19.2","disp: 79.0<br />mpg: 27.3","disp: 120.3<br />mpg: 26.0","disp: 95.1<br />mpg: 30.4","disp: 351.0<br />mpg: 15.8","disp: 145.0<br />mpg: 19.7","disp: 301.0<br />mpg: 15.0","disp: 121.0<br />mpg: 21.4"],"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgba(0,0,0,1)","opacity":1,"size":5.6692913385826778,"symbol":"circle","line":{"width":1.8897637795275593,"color":"rgba(0,0,0,1)"}},"hoveron":"points","showlegend":false,"xaxis":"x","yaxis":"y","hoverinfo":"text","frame":null}],"layout":{"margin":{"t":26.228310502283104,"r":7.3059360730593621,"b":40.182648401826491,"l":37.260273972602747},"plot_bgcolor":"rgba(235,235,235,1)","paper_bgcolor":"rgba(255,255,255,1)","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724},"xaxis":{"domain":[0,1],"automargin":true,"type":"linear","autorange":false,"range":[51.054999999999993,492.04500000000002],"tickmode":"array","ticktext":["100","200","300","400"],"tickvals":[100,200,300,400],"categoryorder":"array","categoryarray":["100","200","300","400"],"nticks":null,"ticks":"outside","tickcolor":"rgba(51,51,51,1)","ticklen":3.6529680365296811,"tickwidth":0.66417600664176002,"showticklabels":true,"tickfont":{"color":"rgba(77,77,77,1)","family":"","size":11.68949771689498},"tickangle":-0,"showline":false,"linecolor":null,"linewidth":0,"showgrid":true,"gridcolor":"rgba(255,255,255,1)","gridwidth":0.66417600664176002,"zeroline":false,"anchor":"y","title":{"text":"Displacement","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724}},"hoverformat":".2f"},"yaxis":{"domain":[0,1],"automargin":true,"type":"linear","autorange":false,"range":[9.2249999999999996,35.074999999999996],"tickmode":"array","ticktext":["10","15","20","25","30","35"],"tickvals":[10,15,20,25,30,35],"categoryorder":"array","categoryarray":["10","15","20","25","30","35"],"nticks":null,"ticks":"outside","tickcolor":"rgba(51,51,51,1)","ticklen":3.6529680365296811,"tickwidth":0.66417600664176002,"showticklabels":true,"tickfont":{"color":"rgba(77,77,77,1)","family":"","size":11.68949771689498},"tickangle":-0,"showline":false,"linecolor":null,"linewidth":0,"showgrid":true,"gridcolor":"rgba(255,255,255,1)","gridwidth":0.66417600664176002,"zeroline":false,"anchor":"x","title":{"text":"mpg","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724}},"hoverformat":".2f"},"shapes":[{"type":"rect","fillcolor":null,"line":{"color":null,"width":0,"linetype":[]},"yref":"paper","xref":"paper","x0":0,"x1":1,"y0":0,"y1":1}],"showlegend":false,"legend":{"bgcolor":"rgba(255,255,255,1)","bordercolor":"transparent","borderwidth":1.8897637795275593,"font":{"color":"rgba(0,0,0,1)","family":"","size":11.68949771689498}},"hovermode":"closest","barmode":"relative"},"config":{"doubleClick":"reset","modeBarButtonsToAdd":["hoverclosest","hovercompare"],"showSendToCloud":false},"source":"A","attrs":{"34ae2174517":{"x":{},"y":{},"type":"scatter"}},"cur_data":"34ae2174517","visdat":{"34ae2174517":["function (y) ","x"]},"highlight":{"on":"plotly_click","persistent":false,"dynamic":false,"selectize":false,"opacityDim":0.20000000000000001,"selected":{"opacity":1},"debounce":0},"shinyEvents":["plotly_hover","plotly_click","plotly_selected","plotly_relayout","plotly_brushed","plotly_brushing","plotly_clickannotation","plotly_doubleclick","plotly_deselect","plotly_afterplot","plotly_sunburstclick"],"base_url":"https://plot.ly"},"evals":[],"jsHooks":[]}</script> <h2>Changing axis limits</h2> <div class="highlight"><pre><code class="language-r" data-lang="r"><span class="n">library</span><span class="p">(</span><span class="n">plotly</span><span class="p">)</span><span class="w"> </span><span class="n">library</span><span class="p">(</span><span class="n">ggplot2</span><span class="p">)</span><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o"><-</span><span class="w"> </span><span class="n">ggplot</span><span class="p">(</span><span class="n">mtcars</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">geom_point</span><span class="p">(</span><span class="n">aes</span><span class="p">(</span><span class="n">disp</span><span class="p">,</span><span class="w"> </span><span class="n">mpg</span><span class="p">))</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">scale_x_continuous</span><span class="p">(</span><span class="n">limits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nf">c</span><span class="p">(</span><span class="m">0</span><span class="p">,</span><span class="w"> </span><span class="m">600</span><span class="p">))</span><span class="w"> </span><span class="n">ggplotly</span><span class="p">(</span><span class="n">p</span><span class="p">)</span><span class="w"> </span></code></pre></div> <div class="plotly html-widget html-fill-item" id="htmlwidget-8efc2bce9776a43c796b" style="width:672px;height:480px;"></div> <script type="application/json" data-for="htmlwidget-8efc2bce9776a43c796b">{"x":{"data":[{"x":[160,160,108,258,360,225,360,146.69999999999999,140.80000000000001,167.59999999999999,167.59999999999999,275.80000000000001,275.80000000000001,275.80000000000001,472,460,440,78.700000000000003,75.700000000000003,71.099999999999994,120.09999999999999,318,304,350,400,79,120.3,95.099999999999994,351,145,301,121],"y":[21,21,22.800000000000001,21.399999999999999,18.699999999999999,18.100000000000001,14.300000000000001,24.399999999999999,22.800000000000001,19.199999999999999,17.800000000000001,16.399999999999999,17.300000000000001,15.199999999999999,10.4,10.4,14.699999999999999,32.399999999999999,30.399999999999999,33.899999999999999,21.5,15.5,15.199999999999999,13.300000000000001,19.199999999999999,27.300000000000001,26,30.399999999999999,15.800000000000001,19.699999999999999,15,21.399999999999999],"text":["disp: 160.0<br />mpg: 21.0","disp: 160.0<br />mpg: 21.0","disp: 108.0<br />mpg: 22.8","disp: 258.0<br />mpg: 21.4","disp: 360.0<br />mpg: 18.7","disp: 225.0<br />mpg: 18.1","disp: 360.0<br />mpg: 14.3","disp: 146.7<br />mpg: 24.4","disp: 140.8<br />mpg: 22.8","disp: 167.6<br />mpg: 19.2","disp: 167.6<br />mpg: 17.8","disp: 275.8<br />mpg: 16.4","disp: 275.8<br />mpg: 17.3","disp: 275.8<br />mpg: 15.2","disp: 472.0<br />mpg: 10.4","disp: 460.0<br />mpg: 10.4","disp: 440.0<br />mpg: 14.7","disp: 78.7<br />mpg: 32.4","disp: 75.7<br />mpg: 30.4","disp: 71.1<br />mpg: 33.9","disp: 120.1<br />mpg: 21.5","disp: 318.0<br />mpg: 15.5","disp: 304.0<br />mpg: 15.2","disp: 350.0<br />mpg: 13.3","disp: 400.0<br />mpg: 19.2","disp: 79.0<br />mpg: 27.3","disp: 120.3<br />mpg: 26.0","disp: 95.1<br />mpg: 30.4","disp: 351.0<br />mpg: 15.8","disp: 145.0<br />mpg: 19.7","disp: 301.0<br />mpg: 15.0","disp: 121.0<br />mpg: 21.4"],"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgba(0,0,0,1)","opacity":1,"size":5.6692913385826778,"symbol":"circle","line":{"width":1.8897637795275593,"color":"rgba(0,0,0,1)"}},"hoveron":"points","showlegend":false,"xaxis":"x","yaxis":"y","hoverinfo":"text","frame":null}],"layout":{"margin":{"t":26.228310502283104,"r":7.3059360730593621,"b":40.182648401826491,"l":37.260273972602747},"plot_bgcolor":"rgba(235,235,235,1)","paper_bgcolor":"rgba(255,255,255,1)","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724},"xaxis":{"domain":[0,1],"automargin":true,"type":"linear","autorange":false,"range":[-30,630],"tickmode":"array","ticktext":["0","200","400","600"],"tickvals":[0,200.00000000000003,400,600],"categoryorder":"array","categoryarray":["0","200","400","600"],"nticks":null,"ticks":"outside","tickcolor":"rgba(51,51,51,1)","ticklen":3.6529680365296811,"tickwidth":0.66417600664176002,"showticklabels":true,"tickfont":{"color":"rgba(77,77,77,1)","family":"","size":11.68949771689498},"tickangle":-0,"showline":false,"linecolor":null,"linewidth":0,"showgrid":true,"gridcolor":"rgba(255,255,255,1)","gridwidth":0.66417600664176002,"zeroline":false,"anchor":"y","title":{"text":"disp","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724}},"hoverformat":".2f"},"yaxis":{"domain":[0,1],"automargin":true,"type":"linear","autorange":false,"range":[9.2249999999999996,35.074999999999996],"tickmode":"array","ticktext":["10","15","20","25","30","35"],"tickvals":[10,15,20,25,30,35],"categoryorder":"array","categoryarray":["10","15","20","25","30","35"],"nticks":null,"ticks":"outside","tickcolor":"rgba(51,51,51,1)","ticklen":3.6529680365296811,"tickwidth":0.66417600664176002,"showticklabels":true,"tickfont":{"color":"rgba(77,77,77,1)","family":"","size":11.68949771689498},"tickangle":-0,"showline":false,"linecolor":null,"linewidth":0,"showgrid":true,"gridcolor":"rgba(255,255,255,1)","gridwidth":0.66417600664176002,"zeroline":false,"anchor":"x","title":{"text":"mpg","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724}},"hoverformat":".2f"},"shapes":[{"type":"rect","fillcolor":null,"line":{"color":null,"width":0,"linetype":[]},"yref":"paper","xref":"paper","x0":0,"x1":1,"y0":0,"y1":1}],"showlegend":false,"legend":{"bgcolor":"rgba(255,255,255,1)","bordercolor":"transparent","borderwidth":1.8897637795275593,"font":{"color":"rgba(0,0,0,1)","family":"","size":11.68949771689498}},"hovermode":"closest","barmode":"relative"},"config":{"doubleClick":"reset","modeBarButtonsToAdd":["hoverclosest","hovercompare"],"showSendToCloud":false},"source":"A","attrs":{"34ae41987f5a":{"x":{},"y":{},"type":"scatter"}},"cur_data":"34ae41987f5a","visdat":{"34ae41987f5a":["function (y) ","x"]},"highlight":{"on":"plotly_click","persistent":false,"dynamic":false,"selectize":false,"opacityDim":0.20000000000000001,"selected":{"opacity":1},"debounce":0},"shinyEvents":["plotly_hover","plotly_click","plotly_selected","plotly_relayout","plotly_brushed","plotly_brushing","plotly_clickannotation","plotly_doubleclick","plotly_deselect","plotly_afterplot","plotly_sunburstclick"],"base_url":"https://plot.ly"},"evals":[],"jsHooks":[]}</script> <h2>Changing axis ticks</h2> <p>The <code>breaks</code> argument is used to specify where the ticks appear. It takes a numeric vector equal to the length of the number of ticks.</p> <div class="highlight"><pre><code class="language-r" data-lang="r"><span class="n">library</span><span class="p">(</span><span class="n">plotly</span><span class="p">)</span><span class="w"> </span><span class="n">library</span><span class="p">(</span><span class="n">ggplot2</span><span class="p">)</span><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o"><-</span><span class="w"> </span><span class="n">ggplot</span><span class="p">(</span><span class="n">mtcars</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">geom_point</span><span class="p">(</span><span class="n">aes</span><span class="p">(</span><span class="n">disp</span><span class="p">,</span><span class="w"> </span><span class="n">mpg</span><span class="p">))</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">scale_x_continuous</span><span class="p">(</span><span class="n">breaks</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nf">c</span><span class="p">(</span><span class="m">150</span><span class="p">,</span><span class="w"> </span><span class="m">300</span><span class="p">,</span><span class="w"> </span><span class="m">450</span><span class="p">))</span><span class="w"> </span><span class="n">ggplotly</span><span class="p">(</span><span class="n">p</span><span class="p">)</span><span class="w"> </span></code></pre></div> <div class="plotly html-widget html-fill-item" id="htmlwidget-13efe4e17bb84f091d09" style="width:672px;height:480px;"></div> <script type="application/json" data-for="htmlwidget-13efe4e17bb84f091d09">{"x":{"data":[{"x":[160,160,108,258,360,225,360,146.69999999999999,140.80000000000001,167.59999999999999,167.59999999999999,275.80000000000001,275.80000000000001,275.80000000000001,472,460,440,78.700000000000003,75.700000000000003,71.099999999999994,120.09999999999999,318,304,350,400,79,120.3,95.099999999999994,351,145,301,121],"y":[21,21,22.800000000000001,21.399999999999999,18.699999999999999,18.100000000000001,14.300000000000001,24.399999999999999,22.800000000000001,19.199999999999999,17.800000000000001,16.399999999999999,17.300000000000001,15.199999999999999,10.4,10.4,14.699999999999999,32.399999999999999,30.399999999999999,33.899999999999999,21.5,15.5,15.199999999999999,13.300000000000001,19.199999999999999,27.300000000000001,26,30.399999999999999,15.800000000000001,19.699999999999999,15,21.399999999999999],"text":["disp: 160.0<br />mpg: 21.0","disp: 160.0<br />mpg: 21.0","disp: 108.0<br />mpg: 22.8","disp: 258.0<br />mpg: 21.4","disp: 360.0<br />mpg: 18.7","disp: 225.0<br />mpg: 18.1","disp: 360.0<br />mpg: 14.3","disp: 146.7<br />mpg: 24.4","disp: 140.8<br />mpg: 22.8","disp: 167.6<br />mpg: 19.2","disp: 167.6<br />mpg: 17.8","disp: 275.8<br />mpg: 16.4","disp: 275.8<br />mpg: 17.3","disp: 275.8<br />mpg: 15.2","disp: 472.0<br />mpg: 10.4","disp: 460.0<br />mpg: 10.4","disp: 440.0<br />mpg: 14.7","disp: 78.7<br />mpg: 32.4","disp: 75.7<br />mpg: 30.4","disp: 71.1<br />mpg: 33.9","disp: 120.1<br />mpg: 21.5","disp: 318.0<br />mpg: 15.5","disp: 304.0<br />mpg: 15.2","disp: 350.0<br />mpg: 13.3","disp: 400.0<br />mpg: 19.2","disp: 79.0<br />mpg: 27.3","disp: 120.3<br />mpg: 26.0","disp: 95.1<br />mpg: 30.4","disp: 351.0<br />mpg: 15.8","disp: 145.0<br />mpg: 19.7","disp: 301.0<br />mpg: 15.0","disp: 121.0<br />mpg: 21.4"],"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgba(0,0,0,1)","opacity":1,"size":5.6692913385826778,"symbol":"circle","line":{"width":1.8897637795275593,"color":"rgba(0,0,0,1)"}},"hoveron":"points","showlegend":false,"xaxis":"x","yaxis":"y","hoverinfo":"text","frame":null}],"layout":{"margin":{"t":26.228310502283104,"r":7.3059360730593621,"b":40.182648401826491,"l":37.260273972602747},"plot_bgcolor":"rgba(235,235,235,1)","paper_bgcolor":"rgba(255,255,255,1)","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724},"xaxis":{"domain":[0,1],"automargin":true,"type":"linear","autorange":false,"range":[51.054999999999993,492.04500000000002],"tickmode":"array","ticktext":["150","300","450"],"tickvals":[150,300,450],"categoryorder":"array","categoryarray":["150","300","450"],"nticks":null,"ticks":"outside","tickcolor":"rgba(51,51,51,1)","ticklen":3.6529680365296811,"tickwidth":0.66417600664176002,"showticklabels":true,"tickfont":{"color":"rgba(77,77,77,1)","family":"","size":11.68949771689498},"tickangle":-0,"showline":false,"linecolor":null,"linewidth":0,"showgrid":true,"gridcolor":"rgba(255,255,255,1)","gridwidth":0.66417600664176002,"zeroline":false,"anchor":"y","title":{"text":"disp","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724}},"hoverformat":".2f"},"yaxis":{"domain":[0,1],"automargin":true,"type":"linear","autorange":false,"range":[9.2249999999999996,35.074999999999996],"tickmode":"array","ticktext":["10","15","20","25","30","35"],"tickvals":[10,15,20,25,30,35],"categoryorder":"array","categoryarray":["10","15","20","25","30","35"],"nticks":null,"ticks":"outside","tickcolor":"rgba(51,51,51,1)","ticklen":3.6529680365296811,"tickwidth":0.66417600664176002,"showticklabels":true,"tickfont":{"color":"rgba(77,77,77,1)","family":"","size":11.68949771689498},"tickangle":-0,"showline":false,"linecolor":null,"linewidth":0,"showgrid":true,"gridcolor":"rgba(255,255,255,1)","gridwidth":0.66417600664176002,"zeroline":false,"anchor":"x","title":{"text":"mpg","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724}},"hoverformat":".2f"},"shapes":[{"type":"rect","fillcolor":null,"line":{"color":null,"width":0,"linetype":[]},"yref":"paper","xref":"paper","x0":0,"x1":1,"y0":0,"y1":1}],"showlegend":false,"legend":{"bgcolor":"rgba(255,255,255,1)","bordercolor":"transparent","borderwidth":1.8897637795275593,"font":{"color":"rgba(0,0,0,1)","family":"","size":11.68949771689498}},"hovermode":"closest","barmode":"relative"},"config":{"doubleClick":"reset","modeBarButtonsToAdd":["hoverclosest","hovercompare"],"showSendToCloud":false},"source":"A","attrs":{"34ae3fbc4275":{"x":{},"y":{},"type":"scatter"}},"cur_data":"34ae3fbc4275","visdat":{"34ae3fbc4275":["function (y) ","x"]},"highlight":{"on":"plotly_click","persistent":false,"dynamic":false,"selectize":false,"opacityDim":0.20000000000000001,"selected":{"opacity":1},"debounce":0},"shinyEvents":["plotly_hover","plotly_click","plotly_selected","plotly_relayout","plotly_brushed","plotly_brushing","plotly_clickannotation","plotly_doubleclick","plotly_deselect","plotly_afterplot","plotly_sunburstclick"],"base_url":"https://plot.ly"},"evals":[],"jsHooks":[]}</script> <h2>Changing tick labels</h2> <p>You can change the tick labels using the <code>labels</code> argument. In the below example, we use words instead of numbers. When adding labels, we need to ensure that the length of the <code>breaks</code> and <code>labels</code> are same.</p> <div class="highlight"><pre><code class="language-r" data-lang="r"><span class="n">library</span><span class="p">(</span><span class="n">plotly</span><span class="p">)</span><span class="w"> </span><span class="n">library</span><span class="p">(</span><span class="n">ggplot2</span><span class="p">)</span><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o"><-</span><span class="w"> </span><span class="n">ggplot</span><span class="p">(</span><span class="n">mtcars</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">geom_point</span><span class="p">(</span><span class="n">aes</span><span class="p">(</span><span class="n">disp</span><span class="p">,</span><span class="w"> </span><span class="n">mpg</span><span class="p">))</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">scale_x_continuous</span><span class="p">(</span><span class="n">breaks</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nf">c</span><span class="p">(</span><span class="m">150</span><span class="p">,</span><span class="w"> </span><span class="m">300</span><span class="p">,</span><span class="w"> </span><span class="m">450</span><span class="p">),</span><span class="w"> </span><span class="n">labels</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nf">c</span><span class="p">(</span><span class="s1">'One Hundred Fifty'</span><span class="p">,</span><span class="w"> </span><span class="s1">'Three Hundred'</span><span class="p">,</span><span class="w"> </span><span class="s1">'Four Hundred Fifity'</span><span class="p">))</span><span class="w"> </span><span class="n">ggplotly</span><span class="p">(</span><span class="n">p</span><span class="p">)</span><span class="w"> </span></code></pre></div> <div class="plotly html-widget html-fill-item" id="htmlwidget-2cae1120a37f03cadebd" style="width:672px;height:480px;"></div> <script type="application/json" data-for="htmlwidget-2cae1120a37f03cadebd">{"x":{"data":[{"x":[160,160,108,258,360,225,360,146.69999999999999,140.80000000000001,167.59999999999999,167.59999999999999,275.80000000000001,275.80000000000001,275.80000000000001,472,460,440,78.700000000000003,75.700000000000003,71.099999999999994,120.09999999999999,318,304,350,400,79,120.3,95.099999999999994,351,145,301,121],"y":[21,21,22.800000000000001,21.399999999999999,18.699999999999999,18.100000000000001,14.300000000000001,24.399999999999999,22.800000000000001,19.199999999999999,17.800000000000001,16.399999999999999,17.300000000000001,15.199999999999999,10.4,10.4,14.699999999999999,32.399999999999999,30.399999999999999,33.899999999999999,21.5,15.5,15.199999999999999,13.300000000000001,19.199999999999999,27.300000000000001,26,30.399999999999999,15.800000000000001,19.699999999999999,15,21.399999999999999],"text":["disp: 160.0<br />mpg: 21.0","disp: 160.0<br />mpg: 21.0","disp: 108.0<br />mpg: 22.8","disp: 258.0<br />mpg: 21.4","disp: 360.0<br />mpg: 18.7","disp: 225.0<br />mpg: 18.1","disp: 360.0<br />mpg: 14.3","disp: 146.7<br />mpg: 24.4","disp: 140.8<br />mpg: 22.8","disp: 167.6<br />mpg: 19.2","disp: 167.6<br />mpg: 17.8","disp: 275.8<br />mpg: 16.4","disp: 275.8<br />mpg: 17.3","disp: 275.8<br />mpg: 15.2","disp: 472.0<br />mpg: 10.4","disp: 460.0<br />mpg: 10.4","disp: 440.0<br />mpg: 14.7","disp: 78.7<br />mpg: 32.4","disp: 75.7<br />mpg: 30.4","disp: 71.1<br />mpg: 33.9","disp: 120.1<br />mpg: 21.5","disp: 318.0<br />mpg: 15.5","disp: 304.0<br />mpg: 15.2","disp: 350.0<br />mpg: 13.3","disp: 400.0<br />mpg: 19.2","disp: 79.0<br />mpg: 27.3","disp: 120.3<br />mpg: 26.0","disp: 95.1<br />mpg: 30.4","disp: 351.0<br />mpg: 15.8","disp: 145.0<br />mpg: 19.7","disp: 301.0<br />mpg: 15.0","disp: 121.0<br />mpg: 21.4"],"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgba(0,0,0,1)","opacity":1,"size":5.6692913385826778,"symbol":"circle","line":{"width":1.8897637795275593,"color":"rgba(0,0,0,1)"}},"hoveron":"points","showlegend":false,"xaxis":"x","yaxis":"y","hoverinfo":"text","frame":null}],"layout":{"margin":{"t":26.228310502283104,"r":7.3059360730593621,"b":40.182648401826491,"l":37.260273972602747},"plot_bgcolor":"rgba(235,235,235,1)","paper_bgcolor":"rgba(255,255,255,1)","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724},"xaxis":{"domain":[0,1],"automargin":true,"type":"linear","autorange":false,"range":[51.054999999999993,492.04500000000002],"tickmode":"array","ticktext":["One Hundred Fifty","Three Hundred","Four Hundred Fifity"],"tickvals":[150,300,450],"categoryorder":"array","categoryarray":["One Hundred Fifty","Three Hundred","Four Hundred Fifity"],"nticks":null,"ticks":"outside","tickcolor":"rgba(51,51,51,1)","ticklen":3.6529680365296811,"tickwidth":0.66417600664176002,"showticklabels":true,"tickfont":{"color":"rgba(77,77,77,1)","family":"","size":11.68949771689498},"tickangle":-0,"showline":false,"linecolor":null,"linewidth":0,"showgrid":true,"gridcolor":"rgba(255,255,255,1)","gridwidth":0.66417600664176002,"zeroline":false,"anchor":"y","title":{"text":"disp","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724}},"hoverformat":".2f"},"yaxis":{"domain":[0,1],"automargin":true,"type":"linear","autorange":false,"range":[9.2249999999999996,35.074999999999996],"tickmode":"array","ticktext":["10","15","20","25","30","35"],"tickvals":[10,15,20,25,30,35],"categoryorder":"array","categoryarray":["10","15","20","25","30","35"],"nticks":null,"ticks":"outside","tickcolor":"rgba(51,51,51,1)","ticklen":3.6529680365296811,"tickwidth":0.66417600664176002,"showticklabels":true,"tickfont":{"color":"rgba(77,77,77,1)","family":"","size":11.68949771689498},"tickangle":-0,"showline":false,"linecolor":null,"linewidth":0,"showgrid":true,"gridcolor":"rgba(255,255,255,1)","gridwidth":0.66417600664176002,"zeroline":false,"anchor":"x","title":{"text":"mpg","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724}},"hoverformat":".2f"},"shapes":[{"type":"rect","fillcolor":null,"line":{"color":null,"width":0,"linetype":[]},"yref":"paper","xref":"paper","x0":0,"x1":1,"y0":0,"y1":1}],"showlegend":false,"legend":{"bgcolor":"rgba(255,255,255,1)","bordercolor":"transparent","borderwidth":1.8897637795275593,"font":{"color":"rgba(0,0,0,1)","family":"","size":11.68949771689498}},"hovermode":"closest","barmode":"relative"},"config":{"doubleClick":"reset","modeBarButtonsToAdd":["hoverclosest","hovercompare"],"showSendToCloud":false},"source":"A","attrs":{"34ae7e74feee":{"x":{},"y":{},"type":"scatter"}},"cur_data":"34ae7e74feee","visdat":{"34ae7e74feee":["function (y) ","x"]},"highlight":{"on":"plotly_click","persistent":false,"dynamic":false,"selectize":false,"opacityDim":0.20000000000000001,"selected":{"opacity":1},"debounce":0},"shinyEvents":["plotly_hover","plotly_click","plotly_selected","plotly_relayout","plotly_brushed","plotly_brushing","plotly_clickannotation","plotly_doubleclick","plotly_deselect","plotly_afterplot","plotly_sunburstclick"],"base_url":"https://plot.ly"},"evals":[],"jsHooks":[]}</script> <h2>Changing position of labels</h2> <div class="highlight"><pre><code class="language-r" data-lang="r"><span class="n">library</span><span class="p">(</span><span class="n">ggplot2</span><span class="p">)</span><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o"><-</span><span class="w"> </span><span class="n">ggplot</span><span class="p">(</span><span class="n">mtcars</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">geom_point</span><span class="p">(</span><span class="n">aes</span><span class="p">(</span><span class="n">disp</span><span class="p">,</span><span class="w"> </span><span class="n">mpg</span><span class="p">))</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">scale_x_continuous</span><span class="p">(</span><span class="n">position</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s1">'top'</span><span class="p">)</span><span class="w"> </span><span class="n">ggplotly</span><span class="p">(</span><span class="n">p</span><span class="p">)</span><span class="w"> </span></code></pre></div> <div class="plotly html-widget html-fill-item" id="htmlwidget-80f27d0153695be720b8" style="width:672px;height:480px;"></div> <script type="application/json" data-for="htmlwidget-80f27d0153695be720b8">{"x":{"data":[{"x":[160,160,108,258,360,225,360,146.69999999999999,140.80000000000001,167.59999999999999,167.59999999999999,275.80000000000001,275.80000000000001,275.80000000000001,472,460,440,78.700000000000003,75.700000000000003,71.099999999999994,120.09999999999999,318,304,350,400,79,120.3,95.099999999999994,351,145,301,121],"y":[21,21,22.800000000000001,21.399999999999999,18.699999999999999,18.100000000000001,14.300000000000001,24.399999999999999,22.800000000000001,19.199999999999999,17.800000000000001,16.399999999999999,17.300000000000001,15.199999999999999,10.4,10.4,14.699999999999999,32.399999999999999,30.399999999999999,33.899999999999999,21.5,15.5,15.199999999999999,13.300000000000001,19.199999999999999,27.300000000000001,26,30.399999999999999,15.800000000000001,19.699999999999999,15,21.399999999999999],"text":["disp: 160.0<br />mpg: 21.0","disp: 160.0<br />mpg: 21.0","disp: 108.0<br />mpg: 22.8","disp: 258.0<br />mpg: 21.4","disp: 360.0<br />mpg: 18.7","disp: 225.0<br />mpg: 18.1","disp: 360.0<br />mpg: 14.3","disp: 146.7<br />mpg: 24.4","disp: 140.8<br />mpg: 22.8","disp: 167.6<br />mpg: 19.2","disp: 167.6<br />mpg: 17.8","disp: 275.8<br />mpg: 16.4","disp: 275.8<br />mpg: 17.3","disp: 275.8<br />mpg: 15.2","disp: 472.0<br />mpg: 10.4","disp: 460.0<br />mpg: 10.4","disp: 440.0<br />mpg: 14.7","disp: 78.7<br />mpg: 32.4","disp: 75.7<br />mpg: 30.4","disp: 71.1<br />mpg: 33.9","disp: 120.1<br />mpg: 21.5","disp: 318.0<br />mpg: 15.5","disp: 304.0<br />mpg: 15.2","disp: 350.0<br />mpg: 13.3","disp: 400.0<br />mpg: 19.2","disp: 79.0<br />mpg: 27.3","disp: 120.3<br />mpg: 26.0","disp: 95.1<br />mpg: 30.4","disp: 351.0<br />mpg: 15.8","disp: 145.0<br />mpg: 19.7","disp: 301.0<br />mpg: 15.0","disp: 121.0<br />mpg: 21.4"],"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgba(0,0,0,1)","opacity":1,"size":5.6692913385826778,"symbol":"circle","line":{"width":1.8897637795275593,"color":"rgba(0,0,0,1)"}},"hoveron":"points","showlegend":false,"xaxis":"x","yaxis":"y","hoverinfo":"text","frame":null}],"layout":{"margin":{"t":26.228310502283104,"r":7.3059360730593621,"b":40.182648401826491,"l":37.260273972602747},"plot_bgcolor":"rgba(235,235,235,1)","paper_bgcolor":"rgba(255,255,255,1)","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724},"xaxis":{"domain":[0,1],"automargin":true,"type":"linear","autorange":false,"range":[51.054999999999993,492.04500000000002],"tickmode":"array","ticktext":["100","200","300","400"],"tickvals":[100,200,300,400],"categoryorder":"array","categoryarray":["100","200","300","400"],"nticks":null,"ticks":"outside","tickcolor":"rgba(51,51,51,1)","ticklen":3.6529680365296811,"tickwidth":0.66417600664176002,"showticklabels":true,"tickfont":{"color":"rgba(77,77,77,1)","family":"","size":11.68949771689498},"tickangle":-0,"showline":false,"linecolor":null,"linewidth":0,"showgrid":true,"gridcolor":"rgba(255,255,255,1)","gridwidth":0.66417600664176002,"zeroline":false,"anchor":"y","title":{"text":"disp","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724}},"hoverformat":".2f"},"yaxis":{"domain":[0,1],"automargin":true,"type":"linear","autorange":false,"range":[9.2249999999999996,35.074999999999996],"tickmode":"array","ticktext":["10","15","20","25","30","35"],"tickvals":[10,15,20,25,30,35],"categoryorder":"array","categoryarray":["10","15","20","25","30","35"],"nticks":null,"ticks":"outside","tickcolor":"rgba(51,51,51,1)","ticklen":3.6529680365296811,"tickwidth":0.66417600664176002,"showticklabels":true,"tickfont":{"color":"rgba(77,77,77,1)","family":"","size":11.68949771689498},"tickangle":-0,"showline":false,"linecolor":null,"linewidth":0,"showgrid":true,"gridcolor":"rgba(255,255,255,1)","gridwidth":0.66417600664176002,"zeroline":false,"anchor":"x","title":{"text":"mpg","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724}},"hoverformat":".2f"},"shapes":[{"type":"rect","fillcolor":null,"line":{"color":null,"width":0,"linetype":[]},"yref":"paper","xref":"paper","x0":0,"x1":1,"y0":0,"y1":1}],"showlegend":false,"legend":{"bgcolor":"rgba(255,255,255,1)","bordercolor":"transparent","borderwidth":1.8897637795275593,"font":{"color":"rgba(0,0,0,1)","family":"","size":11.68949771689498}},"hovermode":"closest","barmode":"relative"},"config":{"doubleClick":"reset","modeBarButtonsToAdd":["hoverclosest","hovercompare"],"showSendToCloud":false},"source":"A","attrs":{"34ae5172c4cd":{"x":{},"y":{},"type":"scatter"}},"cur_data":"34ae5172c4cd","visdat":{"34ae5172c4cd":["function (y) ","x"]},"highlight":{"on":"plotly_click","persistent":false,"dynamic":false,"selectize":false,"opacityDim":0.20000000000000001,"selected":{"opacity":1},"debounce":0},"shinyEvents":["plotly_hover","plotly_click","plotly_selected","plotly_relayout","plotly_brushed","plotly_brushing","plotly_clickannotation","plotly_doubleclick","plotly_deselect","plotly_afterplot","plotly_sunburstclick"],"base_url":"https://plot.ly"},"evals":[],"jsHooks":[]}</script> <h2>Y-axis example</h2> <p>Everything above using <code>scale_x_continuous()</code> can be used in the same way for y axis with <code>scale_y_continuous()</code>.</p> <div class="highlight"><pre><code class="language-r" data-lang="r"><span class="n">library</span><span class="p">(</span><span class="n">plotly</span><span class="p">)</span><span class="w"> </span><span class="n">library</span><span class="p">(</span><span class="n">ggplot2</span><span class="p">)</span><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o"><-</span><span class="w"> </span><span class="n">ggplot</span><span class="p">(</span><span class="n">mtcars</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">geom_point</span><span class="p">(</span><span class="n">aes</span><span class="p">(</span><span class="n">disp</span><span class="p">,</span><span class="w"> </span><span class="n">mpg</span><span class="p">))</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">scale_y_continuous</span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s2">"Miles Per Gallon"</span><span class="p">,</span><span class="w"> </span><span class="n">limits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nf">c</span><span class="p">(</span><span class="m">0</span><span class="p">,</span><span class="w"> </span><span class="m">45</span><span class="p">),</span><span class="w"> </span><span class="n">breaks</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nf">c</span><span class="p">(</span><span class="m">0</span><span class="p">,</span><span class="w"> </span><span class="m">15</span><span class="p">,</span><span class="w"> </span><span class="m">30</span><span class="p">,</span><span class="w"> </span><span class="m">45</span><span class="p">),</span><span class="w"> </span><span class="n">position</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s1">'right'</span><span class="p">,</span><span class="w"> </span><span class="n">labels</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nf">c</span><span class="p">(</span><span class="s1">'zero'</span><span class="p">,</span><span class="w"> </span><span class="s1">'fifteen'</span><span class="p">,</span><span class="w"> </span><span class="s1">'thirty'</span><span class="p">,</span><span class="w"> </span><span class="s1">'fourtyfive'</span><span class="p">))</span><span class="w"> </span><span class="n">ggplotly</span><span class="p">(</span><span class="n">p</span><span class="p">)</span><span class="w"> </span></code></pre></div> <div class="plotly html-widget html-fill-item" id="htmlwidget-829ba30f8529eae83e25" style="width:672px;height:480px;"></div> <script type="application/json" data-for="htmlwidget-829ba30f8529eae83e25">{"x":{"data":[{"x":[160,160,108,258,360,225,360,146.69999999999999,140.80000000000001,167.59999999999999,167.59999999999999,275.80000000000001,275.80000000000001,275.80000000000001,472,460,440,78.700000000000003,75.700000000000003,71.099999999999994,120.09999999999999,318,304,350,400,79,120.3,95.099999999999994,351,145,301,121],"y":[21,21,22.800000000000001,21.399999999999999,18.699999999999999,18.100000000000001,14.300000000000001,24.399999999999999,22.800000000000001,19.199999999999999,17.800000000000001,16.399999999999999,17.300000000000001,15.199999999999999,10.4,10.4,14.699999999999999,32.399999999999999,30.399999999999999,33.899999999999999,21.5,15.5,15.199999999999999,13.300000000000001,19.199999999999999,27.300000000000001,26,30.399999999999999,15.800000000000001,19.699999999999999,15,21.399999999999999],"text":["disp: 160.0<br />mpg: 21.0","disp: 160.0<br />mpg: 21.0","disp: 108.0<br />mpg: 22.8","disp: 258.0<br />mpg: 21.4","disp: 360.0<br />mpg: 18.7","disp: 225.0<br />mpg: 18.1","disp: 360.0<br />mpg: 14.3","disp: 146.7<br />mpg: 24.4","disp: 140.8<br />mpg: 22.8","disp: 167.6<br />mpg: 19.2","disp: 167.6<br />mpg: 17.8","disp: 275.8<br />mpg: 16.4","disp: 275.8<br />mpg: 17.3","disp: 275.8<br />mpg: 15.2","disp: 472.0<br />mpg: 10.4","disp: 460.0<br />mpg: 10.4","disp: 440.0<br />mpg: 14.7","disp: 78.7<br />mpg: 32.4","disp: 75.7<br />mpg: 30.4","disp: 71.1<br />mpg: 33.9","disp: 120.1<br />mpg: 21.5","disp: 318.0<br />mpg: 15.5","disp: 304.0<br />mpg: 15.2","disp: 350.0<br />mpg: 13.3","disp: 400.0<br />mpg: 19.2","disp: 79.0<br />mpg: 27.3","disp: 120.3<br />mpg: 26.0","disp: 95.1<br />mpg: 30.4","disp: 351.0<br />mpg: 15.8","disp: 145.0<br />mpg: 19.7","disp: 301.0<br />mpg: 15.0","disp: 121.0<br />mpg: 21.4"],"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgba(0,0,0,1)","opacity":1,"size":5.6692913385826778,"symbol":"circle","line":{"width":1.8897637795275593,"color":"rgba(0,0,0,1)"}},"hoveron":"points","showlegend":false,"xaxis":"x","yaxis":"y","hoverinfo":"text","frame":null}],"layout":{"margin":{"t":26.228310502283104,"r":7.3059360730593621,"b":40.182648401826491,"l":84.018264840182667},"plot_bgcolor":"rgba(235,235,235,1)","paper_bgcolor":"rgba(255,255,255,1)","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724},"xaxis":{"domain":[0,1],"automargin":true,"type":"linear","autorange":false,"range":[51.054999999999993,492.04500000000002],"tickmode":"array","ticktext":["100","200","300","400"],"tickvals":[100,200,300,400],"categoryorder":"array","categoryarray":["100","200","300","400"],"nticks":null,"ticks":"outside","tickcolor":"rgba(51,51,51,1)","ticklen":3.6529680365296811,"tickwidth":0.66417600664176002,"showticklabels":true,"tickfont":{"color":"rgba(77,77,77,1)","family":"","size":11.68949771689498},"tickangle":-0,"showline":false,"linecolor":null,"linewidth":0,"showgrid":true,"gridcolor":"rgba(255,255,255,1)","gridwidth":0.66417600664176002,"zeroline":false,"anchor":"y","title":{"text":"disp","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724}},"hoverformat":".2f"},"yaxis":{"domain":[0,1],"automargin":true,"type":"linear","autorange":false,"range":[-2.25,47.25],"tickmode":"array","ticktext":["zero","fifteen","thirty","fourtyfive"],"tickvals":[0,15,30,45],"categoryorder":"array","categoryarray":["zero","fifteen","thirty","fourtyfive"],"nticks":null,"ticks":"outside","tickcolor":"rgba(51,51,51,1)","ticklen":3.6529680365296811,"tickwidth":0.66417600664176002,"showticklabels":true,"tickfont":{"color":"rgba(77,77,77,1)","family":"","size":11.68949771689498},"tickangle":-0,"showline":false,"linecolor":null,"linewidth":0,"showgrid":true,"gridcolor":"rgba(255,255,255,1)","gridwidth":0.66417600664176002,"zeroline":false,"anchor":"x","title":{"text":"Miles Per Gallon","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724}},"hoverformat":".2f"},"shapes":[{"type":"rect","fillcolor":null,"line":{"color":null,"width":0,"linetype":[]},"yref":"paper","xref":"paper","x0":0,"x1":1,"y0":0,"y1":1}],"showlegend":false,"legend":{"bgcolor":"rgba(255,255,255,1)","bordercolor":"transparent","borderwidth":1.8897637795275593,"font":{"color":"rgba(0,0,0,1)","family":"","size":11.68949771689498}},"hovermode":"closest","barmode":"relative"},"config":{"doubleClick":"reset","modeBarButtonsToAdd":["hoverclosest","hovercompare"],"showSendToCloud":false},"source":"A","attrs":{"34ae2a8aaa10":{"x":{},"y":{},"type":"scatter"}},"cur_data":"34ae2a8aaa10","visdat":{"34ae2a8aaa10":["function (y) ","x"]},"highlight":{"on":"plotly_click","persistent":false,"dynamic":false,"selectize":false,"opacityDim":0.20000000000000001,"selected":{"opacity":1},"debounce":0},"shinyEvents":["plotly_hover","plotly_click","plotly_selected","plotly_relayout","plotly_brushed","plotly_brushing","plotly_clickannotation","plotly_doubleclick","plotly_deselect","plotly_afterplot","plotly_sunburstclick"],"base_url":"https://plot.ly"},"evals":[],"jsHooks":[]}</script> <h2>Discrete axis labels</h2> <div class="highlight"><pre><code class="language-r" data-lang="r"><span class="n">library</span><span class="p">(</span><span class="n">plotly</span><span class="p">)</span><span class="w"> </span><span class="n">library</span><span class="p">(</span><span class="n">ggplot2</span><span class="p">)</span><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o"><-</span><span class="w"> </span><span class="n">ggplot</span><span class="p">(</span><span class="n">mtcars</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">geom_bar</span><span class="p">(</span><span class="n">aes</span><span class="p">(</span><span class="n">factor</span><span class="p">(</span><span class="n">cyl</span><span class="p">)))</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">scale_x_discrete</span><span class="p">(</span><span class="n">labels</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nf">c</span><span class="p">(</span><span class="s2">"4"</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s2">"Four"</span><span class="p">,</span><span class="w"> </span><span class="s2">"6"</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s2">"Six"</span><span class="p">,</span><span class="w"> </span><span class="s2">"8"</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s2">"Eight"</span><span class="p">))</span><span class="w"> </span><span class="n">ggplotly</span><span class="p">(</span><span class="n">p</span><span class="p">)</span><span class="w"> </span></code></pre></div> <div class="plotly html-widget html-fill-item" id="htmlwidget-ec80d0ada26121b27c5d" style="width:672px;height:480px;"></div> <script type="application/json" data-for="htmlwidget-ec80d0ada26121b27c5d">{"x":{"data":[{"orientation":"v","width":[0.89999999999999991,0.90000000000000013,0.90000000000000036],"base":[0,0,0],"x":[1,2,3],"y":[11,7,14],"text":["count: 11<br />factor(cyl): 4","count: 7<br />factor(cyl): 6","count: 14<br />factor(cyl): 8"],"type":"bar","textposition":"none","marker":{"autocolorscale":false,"color":"rgba(89,89,89,1)","line":{"width":1.8897637795275593,"color":"transparent"}},"showlegend":false,"xaxis":"x","yaxis":"y","hoverinfo":"text","frame":null}],"layout":{"margin":{"t":26.228310502283104,"r":7.3059360730593621,"b":40.182648401826491,"l":37.260273972602747},"plot_bgcolor":"rgba(235,235,235,1)","paper_bgcolor":"rgba(255,255,255,1)","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724},"xaxis":{"domain":[0,1],"automargin":true,"type":"linear","autorange":false,"range":[0.40000000000000002,3.6000000000000001],"tickmode":"array","ticktext":["Four","Six","Eight"],"tickvals":[1,2,3],"categoryorder":"array","categoryarray":["Four","Six","Eight"],"nticks":null,"ticks":"outside","tickcolor":"rgba(51,51,51,1)","ticklen":3.6529680365296811,"tickwidth":0.66417600664176002,"showticklabels":true,"tickfont":{"color":"rgba(77,77,77,1)","family":"","size":11.68949771689498},"tickangle":-0,"showline":false,"linecolor":null,"linewidth":0,"showgrid":true,"gridcolor":"rgba(255,255,255,1)","gridwidth":0.66417600664176002,"zeroline":false,"anchor":"y","title":{"text":"factor(cyl)","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724}},"hoverformat":".2f"},"yaxis":{"domain":[0,1],"automargin":true,"type":"linear","autorange":false,"range":[-0.70000000000000007,14.699999999999999],"tickmode":"array","ticktext":["0","5","10"],"tickvals":[0,5,10],"categoryorder":"array","categoryarray":["0","5","10"],"nticks":null,"ticks":"outside","tickcolor":"rgba(51,51,51,1)","ticklen":3.6529680365296811,"tickwidth":0.66417600664176002,"showticklabels":true,"tickfont":{"color":"rgba(77,77,77,1)","family":"","size":11.68949771689498},"tickangle":-0,"showline":false,"linecolor":null,"linewidth":0,"showgrid":true,"gridcolor":"rgba(255,255,255,1)","gridwidth":0.66417600664176002,"zeroline":false,"anchor":"x","title":{"text":"count","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724}},"hoverformat":".2f"},"shapes":[{"type":"rect","fillcolor":null,"line":{"color":null,"width":0,"linetype":[]},"yref":"paper","xref":"paper","x0":0,"x1":1,"y0":0,"y1":1}],"showlegend":false,"legend":{"bgcolor":"rgba(255,255,255,1)","bordercolor":"transparent","borderwidth":1.8897637795275593,"font":{"color":"rgba(0,0,0,1)","family":"","size":11.68949771689498}},"hovermode":"closest","barmode":"relative"},"config":{"doubleClick":"reset","modeBarButtonsToAdd":["hoverclosest","hovercompare"],"showSendToCloud":false},"source":"A","attrs":{"34ae279efb14":{"x":{},"type":"bar"}},"cur_data":"34ae279efb14","visdat":{"34ae279efb14":["function (y) ","x"]},"highlight":{"on":"plotly_click","persistent":false,"dynamic":false,"selectize":false,"opacityDim":0.20000000000000001,"selected":{"opacity":1},"debounce":0},"shinyEvents":["plotly_hover","plotly_click","plotly_selected","plotly_relayout","plotly_brushed","plotly_brushing","plotly_clickannotation","plotly_doubleclick","plotly_deselect","plotly_afterplot","plotly_sunburstclick"],"base_url":"https://plot.ly"},"evals":[],"jsHooks":[]}</script> <h2>Remove Axis Labels</h2> <div class="highlight"><pre><code class="language-r" data-lang="r"><span class="n">library</span><span class="p">(</span><span class="n">plotly</span><span class="p">)</span><span class="w"> </span><span class="n">library</span><span class="p">(</span><span class="n">ggplot2</span><span class="p">)</span><span class="w"> </span><span class="n">df</span><span class="w"> </span><span class="o"><-</span><span class="w"> </span><span class="n">diamonds</span><span class="p">[</span><span class="n">sample</span><span class="p">(</span><span class="m">1</span><span class="o">:</span><span class="n">nrow</span><span class="p">(</span><span class="n">diamonds</span><span class="p">),</span><span class="w"> </span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="m">1000</span><span class="p">),]</span><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o"><-</span><span class="w"> </span><span class="n">ggplot</span><span class="p">(</span><span class="n">df</span><span class="p">,</span><span class="w"> </span><span class="n">aes</span><span class="p">(</span><span class="n">carat</span><span class="p">,</span><span class="w"> </span><span class="n">price</span><span class="p">,</span><span class="w"> </span><span class="n">color</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cut</span><span class="p">))</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">geom_point</span><span class="p">()</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">theme</span><span class="p">(</span><span class="n">axis.text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">element_blank</span><span class="p">())</span><span class="w"> </span><span class="n">ggplotly</span><span class="p">(</span><span class="n">p</span><span class="p">)</span><span class="w"> </span></code></pre></div> <div class="plotly html-widget html-fill-item" id="htmlwidget-8adf1dcf8b34a34e5c5b" style="width:672px;height:480px;"></div> <script type="application/json" data-for="htmlwidget-8adf1dcf8b34a34e5c5b">{"x":{"data":[{"x":[0.69999999999999996,0.54000000000000004,1,2.0099999999999998,2.52,1.02,2.1499999999999999,1.01,1,0.40000000000000002,1.72,0.90000000000000002,0.98999999999999999,5.0099999999999998,0.51000000000000001,1,2.0699999999999998,0.91000000000000003,1.4299999999999999,1.52,1,1.4399999999999999,1.21,1.3500000000000001,1.3300000000000001,1.2,0.77000000000000002,1.02,1.01,1.5,0.91000000000000003,0.71999999999999997,0.95999999999999996],"y":[2290,1114,2964,10772,10076,2856,5430,3546,3387,798,8264,3226,3337,18018,1668,4312,13016,3180,6727,7702,2035,7338,4147,5524,6078,2376,1956,4398,4004,5268,4550,1147,1705],"text":["carat: 0.70<br />price: 2290<br />cut: Fair","carat: 0.54<br />price: 1114<br />cut: Fair","carat: 1.00<br />price: 2964<br />cut: Fair","carat: 2.01<br />price: 10772<br />cut: Fair","carat: 2.52<br />price: 10076<br />cut: Fair","carat: 1.02<br />price: 2856<br />cut: Fair","carat: 2.15<br />price: 5430<br />cut: Fair","carat: 1.01<br />price: 3546<br />cut: Fair","carat: 1.00<br />price: 3387<br />cut: Fair","carat: 0.40<br />price: 798<br />cut: Fair","carat: 1.72<br />price: 8264<br />cut: Fair","carat: 0.90<br />price: 3226<br />cut: Fair","carat: 0.99<br />price: 3337<br />cut: Fair","carat: 5.01<br />price: 18018<br />cut: Fair","carat: 0.51<br />price: 1668<br />cut: Fair","carat: 1.00<br />price: 4312<br />cut: Fair","carat: 2.07<br />price: 13016<br />cut: Fair","carat: 0.91<br />price: 3180<br />cut: Fair","carat: 1.43<br />price: 6727<br />cut: Fair","carat: 1.52<br />price: 7702<br />cut: Fair","carat: 1.00<br />price: 2035<br />cut: Fair","carat: 1.44<br />price: 7338<br />cut: Fair","carat: 1.21<br />price: 4147<br />cut: Fair","carat: 1.35<br />price: 5524<br />cut: Fair","carat: 1.33<br />price: 6078<br />cut: Fair","carat: 1.20<br />price: 2376<br />cut: Fair","carat: 0.77<br />price: 1956<br />cut: Fair","carat: 1.02<br />price: 4398<br />cut: Fair","carat: 1.01<br />price: 4004<br />cut: Fair","carat: 1.50<br />price: 5268<br />cut: Fair","carat: 0.91<br />price: 4550<br />cut: Fair","carat: 0.72<br />price: 1147<br />cut: Fair","carat: 0.96<br />price: 1705<br />cut: Fair"],"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgba(68,1,84,1)","opacity":1,"size":5.6692913385826778,"symbol":"circle","line":{"width":1.8897637795275593,"color":"rgba(68,1,84,1)"}},"hoveron":"points","name":"Fair","legendgroup":"Fair","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text","frame":null},{"x":[0.32000000000000001,0.90000000000000002,0.77000000000000002,1.6100000000000001,0.69999999999999996,0.91000000000000003,0.34999999999999998,0.29999999999999999,1,0.58999999999999997,1.3100000000000001,0.90000000000000002,0.69999999999999996,1,0.52000000000000002,2,1.03,0.52000000000000002,0.68000000000000005,0.32000000000000001,1.01,0.29999999999999999,1.01,2,0.54000000000000004,1.51,0.66000000000000003,1.0800000000000001,0.69999999999999996,0.58999999999999997,0.69999999999999996,0.90000000000000002,0.70999999999999996,0.51000000000000001,0.33000000000000002,1,1.1299999999999999,1.21,1.1100000000000001,1,2.3300000000000001,0.73999999999999999,1.5,0.40000000000000002,1.02,1,1,0.90000000000000002,1.01,1.01,1.01,0.51000000000000001,0.35999999999999999,1,0.58999999999999997,2,1.51,0.34999999999999998,0.51000000000000001,1.54,2,0.29999999999999999,0.46000000000000002,0.56999999999999995,0.40999999999999998,0.69999999999999996,0.5,0.41999999999999998,1.23,0.27000000000000002,1.01,0.29999999999999999,0.32000000000000001,0.90000000000000002,0.90000000000000002,1.25,0.90000000000000002,0.55000000000000004,0.71999999999999997,1.01,0.33000000000000002,0.69999999999999996,0.80000000000000004,1.2,0.91000000000000003,1.1399999999999999,0.80000000000000004,1,0.69999999999999996,0.90000000000000002,0.69999999999999996,0.56000000000000005,0.32000000000000001,0.91000000000000003,0.23999999999999999,1.01,0.29999999999999999],"y":[421,4463,3291,9005,1955,4211,409,895,3640,1327,5429,3595,2367,4474,1349,16206,4326,1701,1341,589,4692,473,3971,10416,1640,13155,1978,6708,1950,1861,1922,2982,2628,1255,445,4445,4025,7359,3916,8960,13242,2327,11368,882,4594,6328,6189,8239,5056,5147,5147,1443,729,4586,1361,10416,9301,583,1029,10769,6854,605,891,1072,539,2473,1235,722,5386,752,4749,709,361,4124,4382,4725,3139,1410,1959,5756,743,2282,2650,5049,3287,6681,1350,5500,2190,3353,1935,1197,977,3763,373,3932,552],"text":["carat: 0.32<br />price: 421<br />cut: Good","carat: 0.90<br />price: 4463<br />cut: Good","carat: 0.77<br />price: 3291<br />cut: Good","carat: 1.61<br />price: 9005<br />cut: Good","carat: 0.70<br />price: 1955<br />cut: Good","carat: 0.91<br />price: 4211<br />cut: Good","carat: 0.35<br />price: 409<br />cut: Good","carat: 0.30<br />price: 895<br />cut: Good","carat: 1.00<br />price: 3640<br />cut: Good","carat: 0.59<br />price: 1327<br />cut: Good","carat: 1.31<br />price: 5429<br />cut: Good","carat: 0.90<br />price: 3595<br />cut: Good","carat: 0.70<br />price: 2367<br />cut: Good","carat: 1.00<br />price: 4474<br />cut: Good","carat: 0.52<br />price: 1349<br />cut: Good","carat: 2.00<br />price: 16206<br />cut: Good","carat: 1.03<br />price: 4326<br />cut: Good","carat: 0.52<br />price: 1701<br />cut: Good","carat: 0.68<br />price: 1341<br />cut: Good","carat: 0.32<br />price: 589<br />cut: Good","carat: 1.01<br />price: 4692<br />cut: Good","carat: 0.30<br />price: 473<br />cut: Good","carat: 1.01<br />price: 3971<br />cut: Good","carat: 2.00<br />price: 10416<br />cut: Good","carat: 0.54<br />price: 1640<br />cut: Good","carat: 1.51<br />price: 13155<br />cut: Good","carat: 0.66<br />price: 1978<br />cut: Good","carat: 1.08<br />price: 6708<br />cut: Good","carat: 0.70<br />price: 1950<br />cut: Good","carat: 0.59<br />price: 1861<br />cut: Good","carat: 0.70<br />price: 1922<br />cut: Good","carat: 0.90<br />price: 2982<br />cut: Good","carat: 0.71<br />price: 2628<br />cut: Good","carat: 0.51<br />price: 1255<br />cut: Good","carat: 0.33<br />price: 445<br />cut: Good","carat: 1.00<br />price: 4445<br />cut: Good","carat: 1.13<br />price: 4025<br />cut: Good","carat: 1.21<br />price: 7359<br />cut: Good","carat: 1.11<br />price: 3916<br />cut: Good","carat: 1.00<br />price: 8960<br />cut: Good","carat: 2.33<br />price: 13242<br />cut: Good","carat: 0.74<br />price: 2327<br />cut: Good","carat: 1.50<br />price: 11368<br />cut: Good","carat: 0.40<br />price: 882<br />cut: Good","carat: 1.02<br />price: 4594<br />cut: Good","carat: 1.00<br />price: 6328<br />cut: Good","carat: 1.00<br />price: 6189<br />cut: Good","carat: 0.90<br />price: 8239<br />cut: Good","carat: 1.01<br />price: 5056<br />cut: Good","carat: 1.01<br />price: 5147<br />cut: Good","carat: 1.01<br />price: 5147<br />cut: Good","carat: 0.51<br />price: 1443<br />cut: Good","carat: 0.36<br />price: 729<br />cut: Good","carat: 1.00<br />price: 4586<br />cut: Good","carat: 0.59<br />price: 1361<br />cut: Good","carat: 2.00<br />price: 10416<br />cut: Good","carat: 1.51<br />price: 9301<br />cut: Good","carat: 0.35<br />price: 583<br />cut: Good","carat: 0.51<br />price: 1029<br />cut: Good","carat: 1.54<br />price: 10769<br />cut: Good","carat: 2.00<br />price: 6854<br />cut: Good","carat: 0.30<br />price: 605<br />cut: Good","carat: 0.46<br />price: 891<br />cut: Good","carat: 0.57<br />price: 1072<br />cut: Good","carat: 0.41<br />price: 539<br />cut: Good","carat: 0.70<br />price: 2473<br />cut: Good","carat: 0.50<br />price: 1235<br />cut: Good","carat: 0.42<br />price: 722<br />cut: Good","carat: 1.23<br />price: 5386<br />cut: Good","carat: 0.27<br />price: 752<br />cut: Good","carat: 1.01<br />price: 4749<br />cut: Good","carat: 0.30<br />price: 709<br />cut: Good","carat: 0.32<br />price: 361<br />cut: Good","carat: 0.90<br />price: 4124<br />cut: Good","carat: 0.90<br />price: 4382<br />cut: Good","carat: 1.25<br />price: 4725<br />cut: Good","carat: 0.90<br />price: 3139<br />cut: Good","carat: 0.55<br />price: 1410<br />cut: Good","carat: 0.72<br />price: 1959<br />cut: Good","carat: 1.01<br />price: 5756<br />cut: Good","carat: 0.33<br />price: 743<br />cut: Good","carat: 0.70<br />price: 2282<br />cut: Good","carat: 0.80<br />price: 2650<br />cut: Good","carat: 1.20<br />price: 5049<br />cut: Good","carat: 0.91<br />price: 3287<br />cut: Good","carat: 1.14<br />price: 6681<br />cut: Good","carat: 0.80<br />price: 1350<br />cut: Good","carat: 1.00<br />price: 5500<br />cut: Good","carat: 0.70<br />price: 2190<br />cut: Good","carat: 0.90<br />price: 3353<br />cut: Good","carat: 0.70<br />price: 1935<br />cut: Good","carat: 0.56<br />price: 1197<br />cut: Good","carat: 0.32<br />price: 977<br />cut: Good","carat: 0.91<br />price: 3763<br />cut: Good","carat: 0.24<br />price: 373<br />cut: Good","carat: 1.01<br />price: 3932<br />cut: Good","carat: 0.30<br />price: 552<br />cut: Good"],"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgba(59,82,139,1)","opacity":1,"size":5.6692913385826778,"symbol":"circle","line":{"width":1.8897637795275593,"color":"rgba(59,82,139,1)"}},"hoveron":"points","name":"Good","legendgroup":"Good","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text","frame":null},{"x":[1.01,0.69999999999999996,0.93999999999999995,0.25,0.52000000000000002,0.51000000000000001,1.1100000000000001,1.55,0.69999999999999996,1.03,1.4299999999999999,0.70999999999999996,0.29999999999999999,1.0700000000000001,1,0.51000000000000001,1.51,0.32000000000000001,0.40999999999999998,0.29999999999999999,0.70999999999999996,0.59999999999999998,1,0.5,2.0099999999999998,0.83999999999999997,0.78000000000000003,0.23000000000000001,0.56999999999999995,0.29999999999999999,0.31,0.40000000000000002,1.6399999999999999,0.55000000000000004,0.32000000000000001,0.45000000000000001,0.69999999999999996,0.51000000000000001,1.24,0.69999999999999996,0.29999999999999999,0.83999999999999997,0.55000000000000004,0.29999999999999999,1,0.29999999999999999,2.04,0.42999999999999999,0.40000000000000002,0.39000000000000001,0.75,1.01,1,1.28,1.02,0.38,0.80000000000000004,0.31,0.32000000000000001,0.26000000000000001,1.01,1.1200000000000001,1.1200000000000001,0.51000000000000001,0.70999999999999996,0.41999999999999998,0.33000000000000002,1.04,1.51,1.54,0.90000000000000002,1.0700000000000001,0.51000000000000001,1.51,1.1399999999999999,1.1100000000000001,0.29999999999999999,2.0099999999999998,0.65000000000000002,1.23,1.2,0.26000000000000001,1.02,0.23000000000000001,1.01,1.1399999999999999,0.37,0.90000000000000002,0.29999999999999999,0.40999999999999998,1.6100000000000001,0.34999999999999998,1.0600000000000001,2.3100000000000001,0.79000000000000004,0.31,0.90000000000000002,1.0700000000000001,0.34000000000000002,1.05,1,0.55000000000000004,0.53000000000000003,0.31,0.70999999999999996,1.5800000000000001,0.52000000000000002,0.40000000000000002,0.70999999999999996,0.41999999999999998,0.42999999999999999,0.90000000000000002,1.22,0.69999999999999996,0.71999999999999997,0.25,2.0099999999999998,0.29999999999999999,1.1000000000000001,0.5,1.0800000000000001,0.29999999999999999,0.29999999999999999,1.52,0.60999999999999999,0.35999999999999999,0.5,0.42999999999999999,0.40000000000000002,0.31,0.38,1.1399999999999999,1.02,0.51000000000000001,0.92000000000000004,0.59999999999999998,0.5,1.02,1.01,2.2200000000000002,0.48999999999999999,0.69999999999999996,0.62,0.69999999999999996,0.72999999999999998,0.28999999999999998,1.51,0.81999999999999995,1.01,0.41999999999999998,1.51,0.5,1.29,1.01,0.29999999999999999,1.03,1.1100000000000001,1.01,1.0900000000000001,0.92000000000000004,0.32000000000000001,0.29999999999999999,0.33000000000000002,0.79000000000000004,1.02,1.51,1,0.81000000000000005,1.8300000000000001,0.56000000000000005,1.4299999999999999,0.94999999999999996,0.90000000000000002,1.7,1.21,0.71999999999999997,0.32000000000000001,1.45,1.3100000000000001,1.22,1.5,0.91000000000000003,0.39000000000000001,1.2,0.33000000000000002,0.40999999999999998,1.51,1.5,0.46000000000000002,1,1.1899999999999999,0.33000000000000002,0.69999999999999996,0.71999999999999997,0.60999999999999999,1.02,0.70999999999999996,0.5,0.90000000000000002,0.70999999999999996,1.05,0.40999999999999998,1.5,0.46000000000000002,0.71999999999999997,1.51,1.6100000000000001,1.72,1,0.34999999999999998,0.5,1.01,0.40000000000000002,0.29999999999999999,0.47999999999999998,0.42999999999999999,1.02,0.54000000000000004,0.90000000000000002,1.21],"y":[9930,2302,3624,548,1577,1601,3882,8644,2513,4326,8654,2319,895,4824,5645,1220,8049,758,1024,658,2086,1565,4702,1154,16304,4205,2307,402,1754,725,383,924,7750,1744,661,927,2518,1417,7106,2264,405,2813,1100,552,5600,471,11276,867,765,855,4889,4260,4975,8645,5758,600,6834,698,672,486,6529,8408,8564,1597,2843,910,579,4332,6914,7877,4099,6441,1656,17317,4702,4075,447,18077,2752,7143,4502,486,3927,402,4619,8131,491,3105,705,1007,7775,1025,4132,17062,3432,558,4921,4340,775,3742,4630,1563,1830,698,2590,6813,1330,912,2693,882,731,4617,5329,2676,3610,633,11780,506,5082,1799,6415,638,640,10130,1356,1053,1153,774,882,544,800,4935,8990,1841,4228,1399,1289,5500,9965,13579,1400,2362,2310,3724,2359,471,12756,3593,5684,653,11153,2115,6166,4799,995,6931,4170,7974,4959,4037,591,605,579,2878,4901,7441,5806,2797,12379,2037,8069,3365,3445,12030,7906,2923,421,17545,5382,8793,5902,4444,1232,6814,672,899,7154,8590,1326,3906,4665,475,4171,2345,2569,6062,2062,1197,3643,2519,4851,683,12005,1257,2066,14938,10891,8630,4372,567,1849,4171,890,605,1320,1199,4286,1163,4565,4791],"text":["carat: 1.01<br />price: 9930<br />cut: Very Good","carat: 0.70<br />price: 2302<br />cut: Very Good","carat: 0.94<br />price: 3624<br />cut: Very Good","carat: 0.25<br />price: 548<br />cut: Very Good","carat: 0.52<br />price: 1577<br />cut: Very Good","carat: 0.51<br />price: 1601<br />cut: Very Good","carat: 1.11<br />price: 3882<br />cut: Very Good","carat: 1.55<br />price: 8644<br />cut: Very Good","carat: 0.70<br />price: 2513<br />cut: Very Good","carat: 1.03<br />price: 4326<br />cut: Very Good","carat: 1.43<br />price: 8654<br />cut: Very Good","carat: 0.71<br />price: 2319<br />cut: Very Good","carat: 0.30<br />price: 895<br />cut: Very Good","carat: 1.07<br />price: 4824<br />cut: Very Good","carat: 1.00<br />price: 5645<br />cut: Very Good","carat: 0.51<br />price: 1220<br />cut: Very Good","carat: 1.51<br />price: 8049<br />cut: Very Good","carat: 0.32<br />price: 758<br />cut: Very Good","carat: 0.41<br />price: 1024<br />cut: Very Good","carat: 0.30<br />price: 658<br />cut: Very Good","carat: 0.71<br />price: 2086<br />cut: Very Good","carat: 0.60<br />price: 1565<br />cut: Very Good","carat: 1.00<br />price: 4702<br />cut: Very Good","carat: 0.50<br />price: 1154<br />cut: Very Good","carat: 2.01<br />price: 16304<br />cut: Very Good","carat: 0.84<br />price: 4205<br />cut: Very Good","carat: 0.78<br />price: 2307<br />cut: Very Good","carat: 0.23<br />price: 402<br />cut: Very Good","carat: 0.57<br />price: 1754<br />cut: Very Good","carat: 0.30<br />price: 725<br />cut: Very Good","carat: 0.31<br />price: 383<br />cut: Very Good","carat: 0.40<br />price: 924<br />cut: Very Good","carat: 1.64<br />price: 7750<br />cut: Very Good","carat: 0.55<br />price: 1744<br />cut: Very Good","carat: 0.32<br />price: 661<br />cut: Very Good","carat: 0.45<br />price: 927<br />cut: Very Good","carat: 0.70<br />price: 2518<br />cut: Very Good","carat: 0.51<br />price: 1417<br />cut: Very Good","carat: 1.24<br />price: 7106<br />cut: Very Good","carat: 0.70<br />price: 2264<br />cut: Very Good","carat: 0.30<br />price: 405<br />cut: Very Good","carat: 0.84<br />price: 2813<br />cut: Very Good","carat: 0.55<br />price: 1100<br />cut: Very Good","carat: 0.30<br />price: 552<br />cut: Very Good","carat: 1.00<br />price: 5600<br />cut: Very Good","carat: 0.30<br />price: 471<br />cut: Very Good","carat: 2.04<br />price: 11276<br />cut: Very Good","carat: 0.43<br />price: 867<br />cut: Very Good","carat: 0.40<br />price: 765<br />cut: Very Good","carat: 0.39<br />price: 855<br />cut: Very Good","carat: 0.75<br />price: 4889<br />cut: Very Good","carat: 1.01<br />price: 4260<br />cut: Very Good","carat: 1.00<br />price: 4975<br />cut: Very Good","carat: 1.28<br />price: 8645<br />cut: Very Good","carat: 1.02<br />price: 5758<br />cut: Very Good","carat: 0.38<br />price: 600<br />cut: Very Good","carat: 0.80<br />price: 6834<br />cut: Very Good","carat: 0.31<br />price: 698<br />cut: Very Good","carat: 0.32<br />price: 672<br />cut: Very Good","carat: 0.26<br />price: 486<br />cut: Very Good","carat: 1.01<br />price: 6529<br />cut: Very Good","carat: 1.12<br />price: 8408<br />cut: Very Good","carat: 1.12<br />price: 8564<br />cut: Very Good","carat: 0.51<br />price: 1597<br />cut: Very Good","carat: 0.71<br />price: 2843<br />cut: Very Good","carat: 0.42<br />price: 910<br />cut: Very Good","carat: 0.33<br />price: 579<br />cut: Very Good","carat: 1.04<br />price: 4332<br />cut: Very Good","carat: 1.51<br />price: 6914<br />cut: Very Good","carat: 1.54<br />price: 7877<br />cut: Very Good","carat: 0.90<br />price: 4099<br />cut: Very Good","carat: 1.07<br />price: 6441<br />cut: Very Good","carat: 0.51<br />price: 1656<br />cut: Very Good","carat: 1.51<br />price: 17317<br />cut: Very Good","carat: 1.14<br />price: 4702<br />cut: Very Good","carat: 1.11<br />price: 4075<br />cut: Very Good","carat: 0.30<br />price: 447<br />cut: Very Good","carat: 2.01<br />price: 18077<br />cut: Very Good","carat: 0.65<br />price: 2752<br />cut: Very Good","carat: 1.23<br />price: 7143<br />cut: Very Good","carat: 1.20<br />price: 4502<br />cut: Very Good","carat: 0.26<br />price: 486<br />cut: Very Good","carat: 1.02<br />price: 3927<br />cut: Very Good","carat: 0.23<br />price: 402<br />cut: Very Good","carat: 1.01<br />price: 4619<br />cut: Very Good","carat: 1.14<br />price: 8131<br />cut: Very Good","carat: 0.37<br />price: 491<br />cut: Very Good","carat: 0.90<br />price: 3105<br />cut: Very Good","carat: 0.30<br />price: 705<br />cut: Very Good","carat: 0.41<br />price: 1007<br />cut: Very Good","carat: 1.61<br />price: 7775<br />cut: Very Good","carat: 0.35<br />price: 1025<br />cut: Very Good","carat: 1.06<br />price: 4132<br />cut: Very Good","carat: 2.31<br />price: 17062<br />cut: Very Good","carat: 0.79<br />price: 3432<br />cut: Very Good","carat: 0.31<br />price: 558<br />cut: Very Good","carat: 0.90<br />price: 4921<br />cut: Very Good","carat: 1.07<br />price: 4340<br />cut: Very Good","carat: 0.34<br />price: 775<br />cut: Very Good","carat: 1.05<br />price: 3742<br />cut: Very Good","carat: 1.00<br />price: 4630<br />cut: Very Good","carat: 0.55<br />price: 1563<br />cut: Very Good","carat: 0.53<br />price: 1830<br />cut: Very Good","carat: 0.31<br />price: 698<br />cut: Very Good","carat: 0.71<br />price: 2590<br />cut: Very Good","carat: 1.58<br />price: 6813<br />cut: Very Good","carat: 0.52<br />price: 1330<br />cut: Very Good","carat: 0.40<br />price: 912<br />cut: Very Good","carat: 0.71<br />price: 2693<br />cut: Very Good","carat: 0.42<br />price: 882<br />cut: Very Good","carat: 0.43<br />price: 731<br />cut: Very Good","carat: 0.90<br />price: 4617<br />cut: Very Good","carat: 1.22<br />price: 5329<br />cut: Very Good","carat: 0.70<br />price: 2676<br />cut: Very Good","carat: 0.72<br />price: 3610<br />cut: Very Good","carat: 0.25<br />price: 633<br />cut: Very Good","carat: 2.01<br />price: 11780<br />cut: Very Good","carat: 0.30<br />price: 506<br />cut: Very Good","carat: 1.10<br />price: 5082<br />cut: Very Good","carat: 0.50<br />price: 1799<br />cut: Very Good","carat: 1.08<br />price: 6415<br />cut: Very Good","carat: 0.30<br />price: 638<br />cut: Very Good","carat: 0.30<br />price: 640<br />cut: Very Good","carat: 1.52<br />price: 10130<br />cut: Very Good","carat: 0.61<br />price: 1356<br />cut: Very Good","carat: 0.36<br />price: 1053<br />cut: Very Good","carat: 0.50<br />price: 1153<br />cut: Very Good","carat: 0.43<br />price: 774<br />cut: Very Good","carat: 0.40<br />price: 882<br />cut: Very Good","carat: 0.31<br />price: 544<br />cut: Very Good","carat: 0.38<br />price: 800<br />cut: Very Good","carat: 1.14<br />price: 4935<br />cut: Very Good","carat: 1.02<br />price: 8990<br />cut: Very Good","carat: 0.51<br />price: 1841<br />cut: Very Good","carat: 0.92<br />price: 4228<br />cut: Very Good","carat: 0.60<br />price: 1399<br />cut: Very Good","carat: 0.50<br />price: 1289<br />cut: Very Good","carat: 1.02<br />price: 5500<br />cut: Very Good","carat: 1.01<br />price: 9965<br />cut: Very Good","carat: 2.22<br />price: 13579<br />cut: Very Good","carat: 0.49<br />price: 1400<br />cut: Very Good","carat: 0.70<br />price: 2362<br />cut: Very Good","carat: 0.62<br />price: 2310<br />cut: Very Good","carat: 0.70<br />price: 3724<br />cut: Very Good","carat: 0.73<br />price: 2359<br />cut: Very Good","carat: 0.29<br />price: 471<br />cut: Very Good","carat: 1.51<br />price: 12756<br />cut: Very Good","carat: 0.82<br />price: 3593<br />cut: Very Good","carat: 1.01<br />price: 5684<br />cut: Very Good","carat: 0.42<br />price: 653<br />cut: Very Good","carat: 1.51<br />price: 11153<br />cut: Very Good","carat: 0.50<br />price: 2115<br />cut: Very Good","carat: 1.29<br />price: 6166<br />cut: Very Good","carat: 1.01<br />price: 4799<br />cut: Very Good","carat: 0.30<br />price: 995<br />cut: Very Good","carat: 1.03<br />price: 6931<br />cut: Very Good","carat: 1.11<br />price: 4170<br />cut: Very Good","carat: 1.01<br />price: 7974<br />cut: Very Good","carat: 1.09<br />price: 4959<br />cut: Very Good","carat: 0.92<br />price: 4037<br />cut: Very Good","carat: 0.32<br />price: 591<br />cut: Very Good","carat: 0.30<br />price: 605<br />cut: Very Good","carat: 0.33<br />price: 579<br />cut: Very Good","carat: 0.79<br />price: 2878<br />cut: Very Good","carat: 1.02<br />price: 4901<br />cut: Very Good","carat: 1.51<br />price: 7441<br />cut: Very Good","carat: 1.00<br />price: 5806<br />cut: Very Good","carat: 0.81<br />price: 2797<br />cut: Very Good","carat: 1.83<br />price: 12379<br />cut: Very Good","carat: 0.56<br />price: 2037<br />cut: Very Good","carat: 1.43<br />price: 8069<br />cut: Very Good","carat: 0.95<br />price: 3365<br />cut: Very Good","carat: 0.90<br />price: 3445<br />cut: Very Good","carat: 1.70<br />price: 12030<br />cut: Very Good","carat: 1.21<br />price: 7906<br />cut: Very Good","carat: 0.72<br />price: 2923<br />cut: Very Good","carat: 0.32<br />price: 421<br />cut: Very Good","carat: 1.45<br />price: 17545<br />cut: Very Good","carat: 1.31<br />price: 5382<br />cut: Very Good","carat: 1.22<br />price: 8793<br />cut: Very Good","carat: 1.50<br />price: 5902<br />cut: Very Good","carat: 0.91<br />price: 4444<br />cut: Very Good","carat: 0.39<br />price: 1232<br />cut: Very Good","carat: 1.20<br />price: 6814<br />cut: Very Good","carat: 0.33<br />price: 672<br />cut: Very Good","carat: 0.41<br />price: 899<br />cut: Very Good","carat: 1.51<br />price: 7154<br />cut: Very Good","carat: 1.50<br />price: 8590<br />cut: Very Good","carat: 0.46<br />price: 1326<br />cut: Very Good","carat: 1.00<br />price: 3906<br />cut: Very Good","carat: 1.19<br />price: 4665<br />cut: Very Good","carat: 0.33<br />price: 475<br />cut: Very Good","carat: 0.70<br />price: 4171<br />cut: Very Good","carat: 0.72<br />price: 2345<br />cut: Very Good","carat: 0.61<br />price: 2569<br />cut: Very Good","carat: 1.02<br />price: 6062<br />cut: Very Good","carat: 0.71<br />price: 2062<br />cut: Very Good","carat: 0.50<br />price: 1197<br />cut: Very Good","carat: 0.90<br />price: 3643<br />cut: Very Good","carat: 0.71<br />price: 2519<br />cut: Very Good","carat: 1.05<br />price: 4851<br />cut: Very Good","carat: 0.41<br />price: 683<br />cut: Very Good","carat: 1.50<br />price: 12005<br />cut: Very Good","carat: 0.46<br />price: 1257<br />cut: Very Good","carat: 0.72<br />price: 2066<br />cut: Very Good","carat: 1.51<br />price: 14938<br />cut: Very Good","carat: 1.61<br />price: 10891<br />cut: Very Good","carat: 1.72<br />price: 8630<br />cut: Very Good","carat: 1.00<br />price: 4372<br />cut: Very Good","carat: 0.35<br />price: 567<br />cut: Very Good","carat: 0.50<br />price: 1849<br />cut: Very Good","carat: 1.01<br />price: 4171<br />cut: Very Good","carat: 0.40<br />price: 890<br />cut: Very Good","carat: 0.30<br />price: 605<br />cut: Very Good","carat: 0.48<br />price: 1320<br />cut: Very Good","carat: 0.43<br />price: 1199<br />cut: Very Good","carat: 1.02<br />price: 4286<br />cut: Very Good","carat: 0.54<br />price: 1163<br />cut: Very Good","carat: 0.90<br />price: 4565<br />cut: Very Good","carat: 1.21<br />price: 4791<br />cut: Very Good"],"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgba(33,144,140,1)","opacity":1,"size":5.6692913385826778,"symbol":"circle","line":{"width":1.8897637795275593,"color":"rgba(33,144,140,1)"}},"hoveron":"points","name":"Very Good","legendgroup":"Very Good","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text","frame":null},{"x":[2.0299999999999998,0.37,1.1599999999999999,0.37,0.40000000000000002,0.31,0.52000000000000002,1.54,0.70999999999999996,0.37,0.5,0.35999999999999999,0.29999999999999999,1,0.80000000000000004,0.69999999999999996,1.28,0.90000000000000002,1.6599999999999999,0.51000000000000001,1.03,1,0.37,0.90000000000000002,1.21,0.40999999999999998,1.74,1.1399999999999999,1.3600000000000001,1.25,2,1.2,0.29999999999999999,1.05,0.53000000000000003,1.01,0.75,0.32000000000000001,1.51,0.90000000000000002,1.5,0.39000000000000001,1.0800000000000001,0.5,1.03,0.40000000000000002,0.32000000000000001,1.5,2.1400000000000001,0.77000000000000002,1.3,0.51000000000000001,1,0.40000000000000002,1.0900000000000001,1.01,1.0600000000000001,1.52,0.35999999999999999,0.40999999999999998,2,0.46000000000000002,2.0099999999999998,1.29,0.83999999999999997,0.90000000000000002,0.35999999999999999,0.90000000000000002,0.31,1.5,0.90000000000000002,0.51000000000000001,1.51,0.75,1.04,0.56999999999999995,0.35999999999999999,0.34999999999999998,0.54000000000000004,0.29999999999999999,0.35999999999999999,1.24,3.0099999999999998,0.34000000000000002,1.24,0.33000000000000002,1.5800000000000001,0.34000000000000002,2.02,1.0700000000000001,2.04,1.01,1.01,0.51000000000000001,0.71999999999999997,0.29999999999999999,0.71999999999999997,0.40999999999999998,0.34000000000000002,0.70999999999999996,0.32000000000000001,1.71,1.01,0.46000000000000002,0.33000000000000002,0.41999999999999998,0.29999999999999999,2.0099999999999998,0.32000000000000001,1.01,1.46,1.24,0.34000000000000002,1.1299999999999999,0.40000000000000002,0.76000000000000001,1.2,0.40000000000000002,0.69999999999999996,1.28,1.04,0.91000000000000003,0.62,2.04,0.70999999999999996,1.01,0.54000000000000004,0.29999999999999999,2.2000000000000002,1.5900000000000001,0.32000000000000001,1.51,0.32000000000000001,1.05,1.3999999999999999,0.51000000000000001,0.71999999999999997,0.31,0.70999999999999996,0.41999999999999998,0.53000000000000003,2.0299999999999998,0.56000000000000005,0.94999999999999996,1.1000000000000001,0.38,1.02,0.32000000000000001,0.71999999999999997,0.93999999999999995,1.27,0.60999999999999999,0.71999999999999997,0.90000000000000002,1.6000000000000001,0.90000000000000002,1.0600000000000001,0.5,0.40999999999999998,1,1.52,0.53000000000000003,1.21,1.01,2,0.90000000000000002,0.29999999999999999,1.04,0.40999999999999998,1.01,0.29999999999999999,0.51000000000000001,1.01,0.90000000000000002,0.40000000000000002,0.71999999999999997,1.1200000000000001,1.0700000000000001,1.01,0.42999999999999999,2,0.91000000000000003,1.0700000000000001,0.42999999999999999,1.51,0.35999999999999999,0.31,1.02,0.42999999999999999,0.55000000000000004,0.39000000000000001,0.40999999999999998,1.1399999999999999,0.39000000000000001,0.29999999999999999,0.33000000000000002,0.70999999999999996,0.80000000000000004,0.25,1.01,0.92000000000000004,0.69999999999999996,1,0.45000000000000001,1.1399999999999999,1.3400000000000001,2.1400000000000001,0.5,1.47,1.01,0.39000000000000001,0.5,1.51,1.3100000000000001,1.51,0.76000000000000001,1.78,0.29999999999999999,1.01,1.1000000000000001,1.1000000000000001,1,0.93000000000000005,0.5,1.0600000000000001,0.51000000000000001,1.79,1.7,1.04,1.02,1.01,1,0.29999999999999999,0.29999999999999999,1.01,0.52000000000000002,0.56999999999999995,0.32000000000000001,1.1899999999999999,0.31,0.69999999999999996,0.47999999999999998,1.54,2.4199999999999999,0.63,0.82999999999999996,0.31,0.52000000000000002,0.48999999999999999,1.03,1.3899999999999999,0.39000000000000001,2.02,0.70999999999999996,2.1099999999999999,2.02,1],"y":[15322,624,2368,791,1333,544,1196,11897,1609,791,1838,810,506,4312,2304,2703,6093,4114,10030,1567,5134,3752,681,4234,7320,1187,11020,10878,8877,5170,17172,9442,554,4354,984,2788,2760,720,9344,4304,8736,1009,4740,1683,4932,807,648,7526,16723,2780,5824,1227,4295,882,4659,10797,5142,16187,537,827,11899,1156,17849,5463,2863,4463,1094,3714,558,10291,3312,1656,14844,2631,3780,1728,729,491,1637,576,505,10033,18710,995,4278,854,10738,650,15498,6022,18104,6533,4808,1421,3048,394,2857,969,596,2401,561,13325,5599,1437,781,984,878,12541,952,5741,8683,5889,745,4873,1080,2897,5551,798,1808,6580,4290,4045,2009,18231,2839,4242,1709,776,16996,9082,756,6173,891,4557,8624,1758,2203,544,2743,1096,1721,16787,1819,4070,3696,1117,3904,1020,2364,4159,6892,1715,1785,2316,11508,3457,4571,1654,899,6303,9193,1558,10083,3801,13162,3599,506,5300,1192,5204,574,1619,6499,3740,975,2732,4663,6274,5864,796,18426,4663,4278,1131,9762,851,625,3769,739,1263,1009,1015,4654,951,878,743,2853,2451,576,5096,3618,2196,4227,941,6448,7305,14490,1286,8314,5854,1009,1395,12202,3697,7553,2644,10666,947,3999,6387,4620,9660,3689,1699,4785,1574,17358,9225,5621,4884,6606,6048,945,524,4676,1577,1058,645,5504,523,5027,1323,7512,17262,1736,2749,698,1872,1026,6628,8631,860,14574,2735,11663,15808,5096],"text":["carat: 2.03<br />price: 15322<br />cut: Premium","carat: 0.37<br />price: 624<br />cut: Premium","carat: 1.16<br />price: 2368<br />cut: Premium","carat: 0.37<br />price: 791<br />cut: Premium","carat: 0.40<br />price: 1333<br />cut: Premium","carat: 0.31<br />price: 544<br />cut: Premium","carat: 0.52<br />price: 1196<br />cut: Premium","carat: 1.54<br />price: 11897<br />cut: Premium","carat: 0.71<br />price: 1609<br />cut: Premium","carat: 0.37<br />price: 791<br />cut: Premium","carat: 0.50<br />price: 1838<br />cut: Premium","carat: 0.36<br />price: 810<br />cut: Premium","carat: 0.30<br />price: 506<br />cut: Premium","carat: 1.00<br />price: 4312<br />cut: Premium","carat: 0.80<br />price: 2304<br />cut: Premium","carat: 0.70<br />price: 2703<br />cut: Premium","carat: 1.28<br />price: 6093<br />cut: Premium","carat: 0.90<br />price: 4114<br />cut: Premium","carat: 1.66<br />price: 10030<br />cut: Premium","carat: 0.51<br />price: 1567<br />cut: Premium","carat: 1.03<br />price: 5134<br />cut: Premium","carat: 1.00<br />price: 3752<br />cut: Premium","carat: 0.37<br />price: 681<br />cut: Premium","carat: 0.90<br />price: 4234<br />cut: Premium","carat: 1.21<br />price: 7320<br />cut: Premium","carat: 0.41<br />price: 1187<br />cut: Premium","carat: 1.74<br />price: 11020<br />cut: Premium","carat: 1.14<br />price: 10878<br />cut: Premium","carat: 1.36<br />price: 8877<br />cut: Premium","carat: 1.25<br />price: 5170<br />cut: Premium","carat: 2.00<br />price: 17172<br />cut: Premium","carat: 1.20<br />price: 9442<br />cut: Premium","carat: 0.30<br />price: 554<br />cut: Premium","carat: 1.05<br />price: 4354<br />cut: Premium","carat: 0.53<br />price: 984<br />cut: Premium","carat: 1.01<br />price: 2788<br />cut: Premium","carat: 0.75<br />price: 2760<br />cut: Premium","carat: 0.32<br />price: 720<br />cut: Premium","carat: 1.51<br />price: 9344<br />cut: Premium","carat: 0.90<br />price: 4304<br />cut: Premium","carat: 1.50<br />price: 8736<br />cut: Premium","carat: 0.39<br />price: 1009<br />cut: Premium","carat: 1.08<br />price: 4740<br />cut: Premium","carat: 0.50<br />price: 1683<br />cut: Premium","carat: 1.03<br />price: 4932<br />cut: Premium","carat: 0.40<br />price: 807<br />cut: Premium","carat: 0.32<br />price: 648<br />cut: Premium","carat: 1.50<br />price: 7526<br />cut: Premium","carat: 2.14<br />price: 16723<br />cut: Premium","carat: 0.77<br />price: 2780<br />cut: Premium","carat: 1.30<br />price: 5824<br />cut: Premium","carat: 0.51<br />price: 1227<br />cut: Premium","carat: 1.00<br />price: 4295<br />cut: Premium","carat: 0.40<br />price: 882<br />cut: Premium","carat: 1.09<br />price: 4659<br />cut: Premium","carat: 1.01<br />price: 10797<br />cut: Premium","carat: 1.06<br />price: 5142<br />cut: Premium","carat: 1.52<br />price: 16187<br />cut: Premium","carat: 0.36<br />price: 537<br />cut: Premium","carat: 0.41<br />price: 827<br />cut: Premium","carat: 2.00<br />price: 11899<br />cut: Premium","carat: 0.46<br />price: 1156<br />cut: Premium","carat: 2.01<br />price: 17849<br />cut: Premium","carat: 1.29<br />price: 5463<br />cut: Premium","carat: 0.84<br />price: 2863<br />cut: Premium","carat: 0.90<br />price: 4463<br />cut: Premium","carat: 0.36<br />price: 1094<br />cut: Premium","carat: 0.90<br />price: 3714<br />cut: Premium","carat: 0.31<br />price: 558<br />cut: Premium","carat: 1.50<br />price: 10291<br />cut: Premium","carat: 0.90<br />price: 3312<br />cut: Premium","carat: 0.51<br />price: 1656<br />cut: Premium","carat: 1.51<br />price: 14844<br />cut: Premium","carat: 0.75<br />price: 2631<br />cut: Premium","carat: 1.04<br />price: 3780<br />cut: Premium","carat: 0.57<br />price: 1728<br />cut: Premium","carat: 0.36<br />price: 729<br />cut: Premium","carat: 0.35<br />price: 491<br />cut: Premium","carat: 0.54<br />price: 1637<br />cut: Premium","carat: 0.30<br />price: 576<br />cut: Premium","carat: 0.36<br />price: 505<br />cut: Premium","carat: 1.24<br />price: 10033<br />cut: Premium","carat: 3.01<br />price: 18710<br />cut: Premium","carat: 0.34<br />price: 995<br />cut: Premium","carat: 1.24<br />price: 4278<br />cut: Premium","carat: 0.33<br />price: 854<br />cut: Premium","carat: 1.58<br />price: 10738<br />cut: Premium","carat: 0.34<br />price: 650<br />cut: Premium","carat: 2.02<br />price: 15498<br />cut: Premium","carat: 1.07<br />price: 6022<br />cut: Premium","carat: 2.04<br />price: 18104<br />cut: Premium","carat: 1.01<br />price: 6533<br />cut: Premium","carat: 1.01<br />price: 4808<br />cut: Premium","carat: 0.51<br />price: 1421<br />cut: Premium","carat: 0.72<br />price: 3048<br />cut: Premium","carat: 0.30<br />price: 394<br />cut: Premium","carat: 0.72<br />price: 2857<br />cut: Premium","carat: 0.41<br />price: 969<br />cut: Premium","carat: 0.34<br />price: 596<br />cut: Premium","carat: 0.71<br />price: 2401<br />cut: Premium","carat: 0.32<br />price: 561<br />cut: Premium","carat: 1.71<br />price: 13325<br />cut: Premium","carat: 1.01<br />price: 5599<br />cut: Premium","carat: 0.46<br />price: 1437<br />cut: Premium","carat: 0.33<br />price: 781<br />cut: Premium","carat: 0.42<br />price: 984<br />cut: Premium","carat: 0.30<br />price: 878<br />cut: Premium","carat: 2.01<br />price: 12541<br />cut: Premium","carat: 0.32<br />price: 952<br />cut: Premium","carat: 1.01<br />price: 5741<br />cut: Premium","carat: 1.46<br />price: 8683<br />cut: Premium","carat: 1.24<br />price: 5889<br />cut: Premium","carat: 0.34<br />price: 745<br />cut: Premium","carat: 1.13<br />price: 4873<br />cut: Premium","carat: 0.40<br />price: 1080<br />cut: Premium","carat: 0.76<br />price: 2897<br />cut: Premium","carat: 1.20<br />price: 5551<br />cut: Premium","carat: 0.40<br />price: 798<br />cut: Premium","carat: 0.70<br />price: 1808<br />cut: Premium","carat: 1.28<br />price: 6580<br />cut: Premium","carat: 1.04<br />price: 4290<br />cut: Premium","carat: 0.91<br />price: 4045<br />cut: Premium","carat: 0.62<br />price: 2009<br />cut: Premium","carat: 2.04<br />price: 18231<br />cut: Premium","carat: 0.71<br />price: 2839<br />cut: Premium","carat: 1.01<br />price: 4242<br />cut: Premium","carat: 0.54<br />price: 1709<br />cut: Premium","carat: 0.30<br />price: 776<br />cut: Premium","carat: 2.20<br />price: 16996<br />cut: Premium","carat: 1.59<br />price: 9082<br />cut: Premium","carat: 0.32<br />price: 756<br />cut: Premium","carat: 1.51<br />price: 6173<br />cut: Premium","carat: 0.32<br />price: 891<br />cut: Premium","carat: 1.05<br />price: 4557<br />cut: Premium","carat: 1.40<br />price: 8624<br />cut: Premium","carat: 0.51<br />price: 1758<br />cut: Premium","carat: 0.72<br />price: 2203<br />cut: Premium","carat: 0.31<br />price: 544<br />cut: Premium","carat: 0.71<br />price: 2743<br />cut: Premium","carat: 0.42<br />price: 1096<br />cut: Premium","carat: 0.53<br />price: 1721<br />cut: Premium","carat: 2.03<br />price: 16787<br />cut: Premium","carat: 0.56<br />price: 1819<br />cut: Premium","carat: 0.95<br />price: 4070<br />cut: Premium","carat: 1.10<br />price: 3696<br />cut: Premium","carat: 0.38<br />price: 1117<br />cut: Premium","carat: 1.02<br />price: 3904<br />cut: Premium","carat: 0.32<br />price: 1020<br />cut: Premium","carat: 0.72<br />price: 2364<br />cut: Premium","carat: 0.94<br />price: 4159<br />cut: Premium","carat: 1.27<br />price: 6892<br />cut: Premium","carat: 0.61<br />price: 1715<br />cut: Premium","carat: 0.72<br />price: 1785<br />cut: Premium","carat: 0.90<br />price: 2316<br />cut: Premium","carat: 1.60<br />price: 11508<br />cut: Premium","carat: 0.90<br />price: 3457<br />cut: Premium","carat: 1.06<br />price: 4571<br />cut: Premium","carat: 0.50<br />price: 1654<br />cut: Premium","carat: 0.41<br />price: 899<br />cut: Premium","carat: 1.00<br />price: 6303<br />cut: Premium","carat: 1.52<br />price: 9193<br />cut: Premium","carat: 0.53<br />price: 1558<br />cut: Premium","carat: 1.21<br />price: 10083<br />cut: Premium","carat: 1.01<br />price: 3801<br />cut: Premium","carat: 2.00<br />price: 13162<br />cut: Premium","carat: 0.90<br />price: 3599<br />cut: Premium","carat: 0.30<br />price: 506<br />cut: Premium","carat: 1.04<br />price: 5300<br />cut: Premium","carat: 0.41<br />price: 1192<br />cut: Premium","carat: 1.01<br />price: 5204<br />cut: Premium","carat: 0.30<br />price: 574<br />cut: Premium","carat: 0.51<br />price: 1619<br />cut: Premium","carat: 1.01<br />price: 6499<br />cut: Premium","carat: 0.90<br />price: 3740<br />cut: Premium","carat: 0.40<br />price: 975<br />cut: Premium","carat: 0.72<br />price: 2732<br />cut: Premium","carat: 1.12<br />price: 4663<br />cut: Premium","carat: 1.07<br />price: 6274<br />cut: Premium","carat: 1.01<br />price: 5864<br />cut: Premium","carat: 0.43<br />price: 796<br />cut: Premium","carat: 2.00<br />price: 18426<br />cut: Premium","carat: 0.91<br />price: 4663<br />cut: Premium","carat: 1.07<br />price: 4278<br />cut: Premium","carat: 0.43<br />price: 1131<br />cut: Premium","carat: 1.51<br />price: 9762<br />cut: Premium","carat: 0.36<br />price: 851<br />cut: Premium","carat: 0.31<br />price: 625<br />cut: Premium","carat: 1.02<br />price: 3769<br />cut: Premium","carat: 0.43<br />price: 739<br />cut: Premium","carat: 0.55<br />price: 1263<br />cut: Premium","carat: 0.39<br />price: 1009<br />cut: Premium","carat: 0.41<br />price: 1015<br />cut: Premium","carat: 1.14<br />price: 4654<br />cut: Premium","carat: 0.39<br />price: 951<br />cut: Premium","carat: 0.30<br />price: 878<br />cut: Premium","carat: 0.33<br />price: 743<br />cut: Premium","carat: 0.71<br />price: 2853<br />cut: Premium","carat: 0.80<br />price: 2451<br />cut: Premium","carat: 0.25<br />price: 576<br />cut: Premium","carat: 1.01<br />price: 5096<br />cut: Premium","carat: 0.92<br />price: 3618<br />cut: Premium","carat: 0.70<br />price: 2196<br />cut: Premium","carat: 1.00<br />price: 4227<br />cut: Premium","carat: 0.45<br />price: 941<br />cut: Premium","carat: 1.14<br />price: 6448<br />cut: Premium","carat: 1.34<br />price: 7305<br />cut: Premium","carat: 2.14<br />price: 14490<br />cut: Premium","carat: 0.50<br />price: 1286<br />cut: Premium","carat: 1.47<br />price: 8314<br />cut: Premium","carat: 1.01<br />price: 5854<br />cut: Premium","carat: 0.39<br />price: 1009<br />cut: Premium","carat: 0.50<br />price: 1395<br />cut: Premium","carat: 1.51<br />price: 12202<br />cut: Premium","carat: 1.31<br />price: 3697<br />cut: Premium","carat: 1.51<br />price: 7553<br />cut: Premium","carat: 0.76<br />price: 2644<br />cut: Premium","carat: 1.78<br />price: 10666<br />cut: Premium","carat: 0.30<br />price: 947<br />cut: Premium","carat: 1.01<br />price: 3999<br />cut: Premium","carat: 1.10<br />price: 6387<br />cut: Premium","carat: 1.10<br />price: 4620<br />cut: Premium","carat: 1.00<br />price: 9660<br />cut: Premium","carat: 0.93<br />price: 3689<br />cut: Premium","carat: 0.50<br />price: 1699<br />cut: Premium","carat: 1.06<br />price: 4785<br />cut: Premium","carat: 0.51<br />price: 1574<br />cut: Premium","carat: 1.79<br />price: 17358<br />cut: Premium","carat: 1.70<br />price: 9225<br />cut: Premium","carat: 1.04<br />price: 5621<br />cut: Premium","carat: 1.02<br />price: 4884<br />cut: Premium","carat: 1.01<br />price: 6606<br />cut: Premium","carat: 1.00<br />price: 6048<br />cut: Premium","carat: 0.30<br />price: 945<br />cut: Premium","carat: 0.30<br />price: 524<br />cut: Premium","carat: 1.01<br />price: 4676<br />cut: Premium","carat: 0.52<br />price: 1577<br />cut: Premium","carat: 0.57<br />price: 1058<br />cut: Premium","carat: 0.32<br />price: 645<br />cut: Premium","carat: 1.19<br />price: 5504<br />cut: Premium","carat: 0.31<br />price: 523<br />cut: Premium","carat: 0.70<br />price: 5027<br />cut: Premium","carat: 0.48<br />price: 1323<br />cut: Premium","carat: 1.54<br />price: 7512<br />cut: Premium","carat: 2.42<br />price: 17262<br />cut: Premium","carat: 0.63<br />price: 1736<br />cut: Premium","carat: 0.83<br />price: 2749<br />cut: Premium","carat: 0.31<br />price: 698<br />cut: Premium","carat: 0.52<br />price: 1872<br />cut: Premium","carat: 0.49<br />price: 1026<br />cut: Premium","carat: 1.03<br />price: 6628<br />cut: Premium","carat: 1.39<br />price: 8631<br />cut: Premium","carat: 0.39<br />price: 860<br />cut: Premium","carat: 2.02<br />price: 14574<br />cut: Premium","carat: 0.71<br />price: 2735<br />cut: Premium","carat: 2.11<br />price: 11663<br />cut: Premium","carat: 2.02<br />price: 15808<br />cut: Premium","carat: 1.00<br />price: 5096<br />cut: Premium"],"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgba(93,200,99,1)","opacity":1,"size":5.6692913385826778,"symbol":"circle","line":{"width":1.8897637795275593,"color":"rgba(93,200,99,1)"}},"hoveron":"points","name":"Premium","legendgroup":"Premium","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text","frame":null},{"x":[1.53,0.58999999999999997,1.1499999999999999,1.02,0.5,0.5,0.31,1.24,0.63,0.32000000000000001,0.53000000000000003,0.34999999999999998,1.0900000000000001,1.0600000000000001,0.58999999999999997,0.34000000000000002,1.0800000000000001,0.33000000000000002,0.54000000000000004,0.73999999999999999,0.40999999999999998,0.90000000000000002,0.34999999999999998,1.01,0.40999999999999998,0.73999999999999999,0.34000000000000002,0.34000000000000002,1.01,0.29999999999999999,0.29999999999999999,0.39000000000000001,0.33000000000000002,0.34000000000000002,0.29999999999999999,0.5,0.29999999999999999,0.40999999999999998,0.54000000000000004,0.73999999999999999,0.51000000000000001,1.0800000000000001,0.31,0.29999999999999999,0.31,0.51000000000000001,0.72999999999999998,0.35999999999999999,2.02,0.32000000000000001,0.59999999999999998,0.31,0.59999999999999998,0.41999999999999998,1.05,1.5800000000000001,0.29999999999999999,0.78000000000000003,0.32000000000000001,0.82999999999999996,0.29999999999999999,0.32000000000000001,0.71999999999999997,2.1299999999999999,0.29999999999999999,0.5,0.51000000000000001,1.0700000000000001,2.1400000000000001,0.29999999999999999,1.8300000000000001,1.01,1.3,0.33000000000000002,1.54,0.29999999999999999,0.59999999999999998,1.52,0.32000000000000001,0.37,0.29999999999999999,0.37,0.81000000000000005,0.72999999999999998,0.70999999999999996,0.72999999999999998,0.40999999999999998,0.55000000000000004,1.5800000000000001,0.32000000000000001,0.29999999999999999,0.31,0.51000000000000001,1.04,0.56000000000000005,0.70999999999999996,0.77000000000000002,0.32000000000000001,1.01,0.29999999999999999,0.69999999999999996,0.73999999999999999,1.21,1.6599999999999999,0.33000000000000002,0.33000000000000002,0.56999999999999995,0.53000000000000003,0.31,0.32000000000000001,0.70999999999999996,1.25,1.1399999999999999,0.33000000000000002,0.29999999999999999,1.3100000000000001,1.51,1.2,1.21,1.01,1.51,0.69999999999999996,0.55000000000000004,0.34000000000000002,0.5,0.41999999999999998,1.23,0.54000000000000004,1.05,0.32000000000000001,1.0900000000000001,0.51000000000000001,2.0099999999999998,0.5,0.52000000000000002,0.69999999999999996,0.40000000000000002,0.40000000000000002,1.5700000000000001,0.28000000000000003,0.38,1.24,1.3,1.03,0.34000000000000002,2.0099999999999998,2.02,0.29999999999999999,1.3300000000000001,0.32000000000000001,0.32000000000000001,0.56999999999999995,1.1299999999999999,0.56999999999999995,1.23,0.42999999999999999,0.91000000000000003,0.31,0.40000000000000002,1.23,0.34000000000000002,1.51,2.27,0.72999999999999998,0.29999999999999999,0.77000000000000002,0.33000000000000002,1.52,0.23999999999999999,1.01,0.72999999999999998,1.0900000000000001,0.33000000000000002,1.03,0.79000000000000004,1.02,1.0900000000000001,0.34000000000000002,1.01,1.3600000000000001,0.52000000000000002,0.56999999999999995,0.51000000000000001,1.03,0.29999999999999999,0.29999999999999999,0.29999999999999999,0.56000000000000005,0.29999999999999999,1.5900000000000001,0.31,0.29999999999999999,0.34000000000000002,1.1399999999999999,0.90000000000000002,0.29999999999999999,0.31,0.38,0.69999999999999996,0.66000000000000003,0.32000000000000001,0.46000000000000002,0.40999999999999998,0.92000000000000004,1,0.35999999999999999,0.33000000000000002,0.71999999999999997,0.53000000000000003,0.72999999999999998,0.63,0.37,2.0299999999999998,0.69999999999999996,0.29999999999999999,0.90000000000000002,1.25,0.32000000000000001,1.04,0.51000000000000001,0.82999999999999996,0.78000000000000003,0.29999999999999999,0.29999999999999999,0.5,0.41999999999999998,1.22,0.52000000000000002,0.80000000000000004,1,0.37,1.5,0.33000000000000002,0.40000000000000002,0.31,0.33000000000000002,0.59999999999999998,0.44,0.46000000000000002,0.55000000000000004,0.38,0.52000000000000002,2.75,1.01,1.46,0.53000000000000003,1.53,0.90000000000000002,0.40000000000000002,0.31,1.04,0.33000000000000002,0.70999999999999996,0.55000000000000004,0.29999999999999999,0.52000000000000002,1.7,0.31,0.69999999999999996,1.55,0.92000000000000004,0.53000000000000003,0.54000000000000004,0.57999999999999996,0.28000000000000003,0.38,0.52000000000000002,0.32000000000000001,0.34999999999999998,1.27,0.41999999999999998,1.55,0.42999999999999999,0.81000000000000005,0.27000000000000002,0.29999999999999999,1,0.29999999999999999,1.7,1.1299999999999999,2.5299999999999998,0.31,0.32000000000000001,0.41999999999999998,0.40999999999999998,1.05,0.35999999999999999,0.31,0.72999999999999998,0.38,0.38,0.34000000000000002,0.81999999999999995,2.0299999999999998,1.1000000000000001,0.33000000000000002,0.33000000000000002,1.0900000000000001,1.05,2.0699999999999998,0.69999999999999996,0.93000000000000005,2.0099999999999998,0.44,0.53000000000000003,1.01,0.90000000000000002,0.38,0.90000000000000002,0.58999999999999997,1.1799999999999999,1.2,0.37,0.95999999999999996,0.5,0.53000000000000003,1.0700000000000001,0.31,0.71999999999999997,0.33000000000000002,1.26,0.60999999999999999,0.56999999999999995,0.53000000000000003,1.04,1.05,0.52000000000000002,0.35999999999999999,0.40999999999999998,0.34999999999999998,1.24,0.32000000000000001,0.59999999999999998,1.05,1.0700000000000001,0.51000000000000001,1.1399999999999999,0.29999999999999999,0.5,0.56999999999999995,2.0099999999999998,0.40000000000000002,0.53000000000000003,0.40000000000000002,1.4299999999999999,0.40999999999999998,0.57999999999999996,0.32000000000000001,1.1100000000000001,1.51,0.35999999999999999,0.5,0.71999999999999997,0.29999999999999999,0.38,0.71999999999999997,1.51,0.71999999999999997,0.32000000000000001,0.34000000000000002,1.6599999999999999,1.1799999999999999,0.72999999999999998,0.5,0.57999999999999996,0.56000000000000005,0.37,0.72999999999999998,1.2,0.31,0.40000000000000002,0.29999999999999999,0.34999999999999998,0.71999999999999997,0.41999999999999998,0.29999999999999999,0.41999999999999998,0.34999999999999998,2,0.54000000000000004,0.31,0.29999999999999999,0.40000000000000002,1.5,0.37,0.32000000000000001,0.75,1.03,0.32000000000000001,0.52000000000000002,0.39000000000000001,0.32000000000000001,0.56000000000000005],"y":[12791,1838,5930,4398,1436,1960,511,9240,1196,720,1549,706,4733,5702,1330,803,4757,723,1662,2779,960,5897,788,4943,827,2654,1014,596,4749,457,438,1377,743,765,710,1695,878,1079,2231,2295,1776,5154,571,450,489,1656,3140,1013,12485,720,1125,732,2109,799,5361,10920,776,3035,645,4963,665,450,3122,15288,564,1614,1443,4276,14359,673,13254,4832,8915,702,14529,524,2570,9057,494,603,552,552,2761,2671,2930,3389,1055,1367,9176,645,814,698,1274,6342,1631,2530,2729,1359,5234,878,2656,2309,7546,10691,743,723,2722,2175,400,864,2258,8036,8017,928,491,7751,15164,5822,10568,4416,11917,2806,1715,802,2645,1221,8133,1147,5504,702,6419,1590,17688,1764,1191,2390,1200,667,15144,497,1176,8489,5169,4928,880,18295,17265,684,12209,540,648,1077,3729,1413,10304,1207,3985,558,737,3168,765,12545,15710,3310,605,3169,730,11379,559,5576,3328,5149,666,4582,2800,6797,4611,589,5020,12494,2029,1410,1794,5518,844,609,631,2066,814,15823,462,776,477,5392,4593,751,732,703,3752,3915,420,1733,764,4691,8239,538,854,3139,1908,3453,2064,1041,12618,2633,540,3629,16823,809,7655,1322,3774,2365,665,665,1410,1087,5226,1694,6674,7370,811,16171,579,1199,625,781,1654,1107,983,2001,808,1675,13156,5141,8855,1857,13994,3338,612,878,7294,743,2699,2098,636,1815,11605,717,3419,11067,4065,1956,1774,1961,487,759,1151,695,956,11840,898,10275,1048,3852,799,863,6580,658,12737,8674,16709,652,715,1179,703,7070,705,424,4182,838,629,626,3798,13182,5636,880,957,5267,4866,17614,2723,4724,12565,1235,1956,4617,4054,954,3677,1292,6013,8590,815,4333,1400,844,7275,778,3257,434,10916,2907,1760,2015,4659,10872,1909,525,1439,921,8726,720,2061,6196,5280,1354,7371,709,1747,1819,12338,1158,1314,737,8599,1007,2067,371,6129,12100,631,1923,3708,621,744,2511,7695,2797,1066,956,10338,6960,3183,1624,2772,1723,552,1902,8545,734,667,1013,767,3004,773,658,984,923,16650,2307,489,605,945,8736,737,828,2801,5021,803,1576,1031,828,2429],"text":["carat: 1.53<br />price: 12791<br />cut: Ideal","carat: 0.59<br />price: 1838<br />cut: Ideal","carat: 1.15<br />price: 5930<br />cut: Ideal","carat: 1.02<br />price: 4398<br />cut: Ideal","carat: 0.50<br />price: 1436<br />cut: Ideal","carat: 0.50<br />price: 1960<br />cut: Ideal","carat: 0.31<br />price: 511<br />cut: Ideal","carat: 1.24<br />price: 9240<br />cut: Ideal","carat: 0.63<br />price: 1196<br />cut: Ideal","carat: 0.32<br />price: 720<br />cut: Ideal","carat: 0.53<br />price: 1549<br />cut: Ideal","carat: 0.35<br />price: 706<br />cut: Ideal","carat: 1.09<br />price: 4733<br />cut: Ideal","carat: 1.06<br />price: 5702<br />cut: Ideal","carat: 0.59<br />price: 1330<br />cut: Ideal","carat: 0.34<br />price: 803<br />cut: Ideal","carat: 1.08<br />price: 4757<br />cut: Ideal","carat: 0.33<br />price: 723<br />cut: Ideal","carat: 0.54<br />price: 1662<br />cut: Ideal","carat: 0.74<br />price: 2779<br />cut: Ideal","carat: 0.41<br />price: 960<br />cut: Ideal","carat: 0.90<br />price: 5897<br />cut: Ideal","carat: 0.35<br />price: 788<br />cut: Ideal","carat: 1.01<br />price: 4943<br />cut: Ideal","carat: 0.41<br />price: 827<br />cut: Ideal","carat: 0.74<br />price: 2654<br />cut: Ideal","carat: 0.34<br />price: 1014<br />cut: Ideal","carat: 0.34<br />price: 596<br />cut: Ideal","carat: 1.01<br />price: 4749<br />cut: Ideal","carat: 0.30<br />price: 457<br />cut: Ideal","carat: 0.30<br />price: 438<br />cut: Ideal","carat: 0.39<br />price: 1377<br />cut: Ideal","carat: 0.33<br />price: 743<br />cut: Ideal","carat: 0.34<br />price: 765<br />cut: Ideal","carat: 0.30<br />price: 710<br />cut: Ideal","carat: 0.50<br />price: 1695<br />cut: Ideal","carat: 0.30<br />price: 878<br />cut: Ideal","carat: 0.41<br />price: 1079<br />cut: Ideal","carat: 0.54<br />price: 2231<br />cut: Ideal","carat: 0.74<br />price: 2295<br />cut: Ideal","carat: 0.51<br />price: 1776<br />cut: Ideal","carat: 1.08<br />price: 5154<br />cut: Ideal","carat: 0.31<br />price: 571<br />cut: Ideal","carat: 0.30<br />price: 450<br />cut: Ideal","carat: 0.31<br />price: 489<br />cut: Ideal","carat: 0.51<br />price: 1656<br />cut: Ideal","carat: 0.73<br />price: 3140<br />cut: Ideal","carat: 0.36<br />price: 1013<br />cut: Ideal","carat: 2.02<br />price: 12485<br />cut: Ideal","carat: 0.32<br />price: 720<br />cut: Ideal","carat: 0.60<br />price: 1125<br />cut: Ideal","carat: 0.31<br />price: 732<br />cut: Ideal","carat: 0.60<br />price: 2109<br />cut: Ideal","carat: 0.42<br />price: 799<br />cut: Ideal","carat: 1.05<br />price: 5361<br />cut: Ideal","carat: 1.58<br />price: 10920<br />cut: Ideal","carat: 0.30<br />price: 776<br />cut: Ideal","carat: 0.78<br />price: 3035<br />cut: Ideal","carat: 0.32<br />price: 645<br />cut: Ideal","carat: 0.83<br />price: 4963<br />cut: Ideal","carat: 0.30<br />price: 665<br />cut: Ideal","carat: 0.32<br />price: 450<br />cut: Ideal","carat: 0.72<br />price: 3122<br />cut: Ideal","carat: 2.13<br />price: 15288<br />cut: Ideal","carat: 0.30<br />price: 564<br />cut: Ideal","carat: 0.50<br />price: 1614<br />cut: Ideal","carat: 0.51<br />price: 1443<br />cut: Ideal","carat: 1.07<br />price: 4276<br />cut: Ideal","carat: 2.14<br />price: 14359<br />cut: Ideal","carat: 0.30<br />price: 673<br />cut: Ideal","carat: 1.83<br />price: 13254<br />cut: Ideal","carat: 1.01<br />price: 4832<br />cut: Ideal","carat: 1.30<br />price: 8915<br />cut: Ideal","carat: 0.33<br />price: 702<br />cut: Ideal","carat: 1.54<br />price: 14529<br />cut: Ideal","carat: 0.30<br />price: 524<br />cut: Ideal","carat: 0.60<br />price: 2570<br />cut: Ideal","carat: 1.52<br />price: 9057<br />cut: Ideal","carat: 0.32<br />price: 494<br />cut: Ideal","carat: 0.37<br />price: 603<br />cut: Ideal","carat: 0.30<br />price: 552<br />cut: Ideal","carat: 0.37<br />price: 552<br />cut: Ideal","carat: 0.81<br />price: 2761<br />cut: Ideal","carat: 0.73<br />price: 2671<br />cut: Ideal","carat: 0.71<br />price: 2930<br />cut: Ideal","carat: 0.73<br />price: 3389<br />cut: Ideal","carat: 0.41<br />price: 1055<br />cut: Ideal","carat: 0.55<br />price: 1367<br />cut: Ideal","carat: 1.58<br />price: 9176<br />cut: Ideal","carat: 0.32<br />price: 645<br />cut: Ideal","carat: 0.30<br />price: 814<br />cut: Ideal","carat: 0.31<br />price: 698<br />cut: Ideal","carat: 0.51<br />price: 1274<br />cut: Ideal","carat: 1.04<br />price: 6342<br />cut: Ideal","carat: 0.56<br />price: 1631<br />cut: Ideal","carat: 0.71<br />price: 2530<br />cut: Ideal","carat: 0.77<br />price: 2729<br />cut: Ideal","carat: 0.32<br />price: 1359<br />cut: Ideal","carat: 1.01<br />price: 5234<br />cut: Ideal","carat: 0.30<br />price: 878<br />cut: Ideal","carat: 0.70<br />price: 2656<br />cut: Ideal","carat: 0.74<br />price: 2309<br />cut: Ideal","carat: 1.21<br />price: 7546<br />cut: Ideal","carat: 1.66<br />price: 10691<br />cut: Ideal","carat: 0.33<br />price: 743<br />cut: Ideal","carat: 0.33<br />price: 723<br />cut: Ideal","carat: 0.57<br />price: 2722<br />cut: Ideal","carat: 0.53<br />price: 2175<br />cut: Ideal","carat: 0.31<br />price: 400<br />cut: Ideal","carat: 0.32<br />price: 864<br />cut: Ideal","carat: 0.71<br />price: 2258<br />cut: Ideal","carat: 1.25<br />price: 8036<br />cut: Ideal","carat: 1.14<br />price: 8017<br />cut: Ideal","carat: 0.33<br />price: 928<br />cut: Ideal","carat: 0.30<br />price: 491<br />cut: Ideal","carat: 1.31<br />price: 7751<br />cut: Ideal","carat: 1.51<br />price: 15164<br />cut: Ideal","carat: 1.20<br />price: 5822<br />cut: Ideal","carat: 1.21<br />price: 10568<br />cut: Ideal","carat: 1.01<br />price: 4416<br />cut: Ideal","carat: 1.51<br />price: 11917<br />cut: Ideal","carat: 0.70<br />price: 2806<br />cut: Ideal","carat: 0.55<br />price: 1715<br />cut: Ideal","carat: 0.34<br />price: 802<br />cut: Ideal","carat: 0.50<br />price: 2645<br />cut: Ideal","carat: 0.42<br />price: 1221<br />cut: Ideal","carat: 1.23<br />price: 8133<br />cut: Ideal","carat: 0.54<br />price: 1147<br />cut: Ideal","carat: 1.05<br />price: 5504<br />cut: Ideal","carat: 0.32<br />price: 702<br />cut: Ideal","carat: 1.09<br />price: 6419<br />cut: Ideal","carat: 0.51<br />price: 1590<br />cut: Ideal","carat: 2.01<br />price: 17688<br />cut: Ideal","carat: 0.50<br />price: 1764<br />cut: Ideal","carat: 0.52<br />price: 1191<br />cut: Ideal","carat: 0.70<br />price: 2390<br />cut: Ideal","carat: 0.40<br />price: 1200<br />cut: Ideal","carat: 0.40<br />price: 667<br />cut: Ideal","carat: 1.57<br />price: 15144<br />cut: Ideal","carat: 0.28<br />price: 497<br />cut: Ideal","carat: 0.38<br />price: 1176<br />cut: Ideal","carat: 1.24<br />price: 8489<br />cut: Ideal","carat: 1.30<br />price: 5169<br />cut: Ideal","carat: 1.03<br />price: 4928<br />cut: Ideal","carat: 0.34<br />price: 880<br />cut: Ideal","carat: 2.01<br />price: 18295<br />cut: Ideal","carat: 2.02<br />price: 17265<br />cut: Ideal","carat: 0.30<br />price: 684<br />cut: Ideal","carat: 1.33<br />price: 12209<br />cut: Ideal","carat: 0.32<br />price: 540<br />cut: Ideal","carat: 0.32<br />price: 648<br />cut: Ideal","carat: 0.57<br />price: 1077<br />cut: Ideal","carat: 1.13<br />price: 3729<br />cut: Ideal","carat: 0.57<br />price: 1413<br />cut: Ideal","carat: 1.23<br />price: 10304<br />cut: Ideal","carat: 0.43<br />price: 1207<br />cut: Ideal","carat: 0.91<br />price: 3985<br />cut: Ideal","carat: 0.31<br />price: 558<br />cut: Ideal","carat: 0.40<br />price: 737<br />cut: Ideal","carat: 1.23<br />price: 3168<br />cut: Ideal","carat: 0.34<br />price: 765<br />cut: Ideal","carat: 1.51<br />price: 12545<br />cut: Ideal","carat: 2.27<br />price: 15710<br />cut: Ideal","carat: 0.73<br />price: 3310<br />cut: Ideal","carat: 0.30<br />price: 605<br />cut: Ideal","carat: 0.77<br />price: 3169<br />cut: Ideal","carat: 0.33<br />price: 730<br />cut: Ideal","carat: 1.52<br />price: 11379<br />cut: Ideal","carat: 0.24<br />price: 559<br />cut: Ideal","carat: 1.01<br />price: 5576<br />cut: Ideal","carat: 0.73<br />price: 3328<br />cut: Ideal","carat: 1.09<br />price: 5149<br />cut: Ideal","carat: 0.33<br />price: 666<br />cut: Ideal","carat: 1.03<br />price: 4582<br />cut: Ideal","carat: 0.79<br />price: 2800<br />cut: Ideal","carat: 1.02<br />price: 6797<br />cut: Ideal","carat: 1.09<br />price: 4611<br />cut: Ideal","carat: 0.34<br />price: 589<br />cut: Ideal","carat: 1.01<br />price: 5020<br />cut: Ideal","carat: 1.36<br />price: 12494<br />cut: Ideal","carat: 0.52<br />price: 2029<br />cut: Ideal","carat: 0.57<br />price: 1410<br />cut: Ideal","carat: 0.51<br />price: 1794<br />cut: Ideal","carat: 1.03<br />price: 5518<br />cut: Ideal","carat: 0.30<br />price: 844<br />cut: Ideal","carat: 0.30<br />price: 609<br />cut: Ideal","carat: 0.30<br />price: 631<br />cut: Ideal","carat: 0.56<br />price: 2066<br />cut: Ideal","carat: 0.30<br />price: 814<br />cut: Ideal","carat: 1.59<br />price: 15823<br />cut: Ideal","carat: 0.31<br />price: 462<br />cut: Ideal","carat: 0.30<br />price: 776<br />cut: Ideal","carat: 0.34<br />price: 477<br />cut: Ideal","carat: 1.14<br />price: 5392<br />cut: Ideal","carat: 0.90<br />price: 4593<br />cut: Ideal","carat: 0.30<br />price: 751<br />cut: Ideal","carat: 0.31<br />price: 732<br />cut: Ideal","carat: 0.38<br />price: 703<br />cut: Ideal","carat: 0.70<br />price: 3752<br />cut: Ideal","carat: 0.66<br />price: 3915<br />cut: Ideal","carat: 0.32<br />price: 420<br />cut: Ideal","carat: 0.46<br />price: 1733<br />cut: Ideal","carat: 0.41<br />price: 764<br />cut: Ideal","carat: 0.92<br />price: 4691<br />cut: Ideal","carat: 1.00<br />price: 8239<br />cut: Ideal","carat: 0.36<br />price: 538<br />cut: Ideal","carat: 0.33<br />price: 854<br />cut: Ideal","carat: 0.72<br />price: 3139<br />cut: Ideal","carat: 0.53<br />price: 1908<br />cut: Ideal","carat: 0.73<br />price: 3453<br />cut: Ideal","carat: 0.63<br />price: 2064<br />cut: Ideal","carat: 0.37<br />price: 1041<br />cut: Ideal","carat: 2.03<br />price: 12618<br />cut: Ideal","carat: 0.70<br />price: 2633<br />cut: Ideal","carat: 0.30<br />price: 540<br />cut: Ideal","carat: 0.90<br />price: 3629<br />cut: Ideal","carat: 1.25<br />price: 16823<br />cut: Ideal","carat: 0.32<br />price: 809<br />cut: Ideal","carat: 1.04<br />price: 7655<br />cut: Ideal","carat: 0.51<br />price: 1322<br />cut: Ideal","carat: 0.83<br />price: 3774<br />cut: Ideal","carat: 0.78<br />price: 2365<br />cut: Ideal","carat: 0.30<br />price: 665<br />cut: Ideal","carat: 0.30<br />price: 665<br />cut: Ideal","carat: 0.50<br />price: 1410<br />cut: Ideal","carat: 0.42<br />price: 1087<br />cut: Ideal","carat: 1.22<br />price: 5226<br />cut: Ideal","carat: 0.52<br />price: 1694<br />cut: Ideal","carat: 0.80<br />price: 6674<br />cut: Ideal","carat: 1.00<br />price: 7370<br />cut: Ideal","carat: 0.37<br />price: 811<br />cut: Ideal","carat: 1.50<br />price: 16171<br />cut: Ideal","carat: 0.33<br />price: 579<br />cut: Ideal","carat: 0.40<br />price: 1199<br />cut: Ideal","carat: 0.31<br />price: 625<br />cut: Ideal","carat: 0.33<br />price: 781<br />cut: Ideal","carat: 0.60<br />price: 1654<br />cut: Ideal","carat: 0.44<br />price: 1107<br />cut: Ideal","carat: 0.46<br />price: 983<br />cut: Ideal","carat: 0.55<br />price: 2001<br />cut: Ideal","carat: 0.38<br />price: 808<br />cut: Ideal","carat: 0.52<br />price: 1675<br />cut: Ideal","carat: 2.75<br />price: 13156<br />cut: Ideal","carat: 1.01<br />price: 5141<br />cut: Ideal","carat: 1.46<br />price: 8855<br />cut: Ideal","carat: 0.53<br />price: 1857<br />cut: Ideal","carat: 1.53<br />price: 13994<br />cut: Ideal","carat: 0.90<br />price: 3338<br />cut: Ideal","carat: 0.40<br />price: 612<br />cut: Ideal","carat: 0.31<br />price: 878<br />cut: Ideal","carat: 1.04<br />price: 7294<br />cut: Ideal","carat: 0.33<br />price: 743<br />cut: Ideal","carat: 0.71<br />price: 2699<br />cut: Ideal","carat: 0.55<br />price: 2098<br />cut: Ideal","carat: 0.30<br />price: 636<br />cut: Ideal","carat: 0.52<br />price: 1815<br />cut: Ideal","carat: 1.70<br />price: 11605<br />cut: Ideal","carat: 0.31<br />price: 717<br />cut: Ideal","carat: 0.70<br />price: 3419<br />cut: Ideal","carat: 1.55<br />price: 11067<br />cut: Ideal","carat: 0.92<br />price: 4065<br />cut: Ideal","carat: 0.53<br />price: 1956<br />cut: Ideal","carat: 0.54<br />price: 1774<br />cut: Ideal","carat: 0.58<br />price: 1961<br />cut: Ideal","carat: 0.28<br />price: 487<br />cut: Ideal","carat: 0.38<br />price: 759<br />cut: Ideal","carat: 0.52<br />price: 1151<br />cut: Ideal","carat: 0.32<br />price: 695<br />cut: Ideal","carat: 0.35<br />price: 956<br />cut: Ideal","carat: 1.27<br />price: 11840<br />cut: Ideal","carat: 0.42<br />price: 898<br />cut: Ideal","carat: 1.55<br />price: 10275<br />cut: Ideal","carat: 0.43<br />price: 1048<br />cut: Ideal","carat: 0.81<br />price: 3852<br />cut: Ideal","carat: 0.27<br />price: 799<br />cut: Ideal","carat: 0.30<br />price: 863<br />cut: Ideal","carat: 1.00<br />price: 6580<br />cut: Ideal","carat: 0.30<br />price: 658<br />cut: Ideal","carat: 1.70<br />price: 12737<br />cut: Ideal","carat: 1.13<br />price: 8674<br />cut: Ideal","carat: 2.53<br />price: 16709<br />cut: Ideal","carat: 0.31<br />price: 652<br />cut: Ideal","carat: 0.32<br />price: 715<br />cut: Ideal","carat: 0.42<br />price: 1179<br />cut: Ideal","carat: 0.41<br />price: 703<br />cut: Ideal","carat: 1.05<br />price: 7070<br />cut: Ideal","carat: 0.36<br />price: 705<br />cut: Ideal","carat: 0.31<br />price: 424<br />cut: Ideal","carat: 0.73<br />price: 4182<br />cut: Ideal","carat: 0.38<br />price: 838<br />cut: Ideal","carat: 0.38<br />price: 629<br />cut: Ideal","carat: 0.34<br />price: 626<br />cut: Ideal","carat: 0.82<br />price: 3798<br />cut: Ideal","carat: 2.03<br />price: 13182<br />cut: Ideal","carat: 1.10<br />price: 5636<br />cut: Ideal","carat: 0.33<br />price: 880<br />cut: Ideal","carat: 0.33<br />price: 957<br />cut: Ideal","carat: 1.09<br />price: 5267<br />cut: Ideal","carat: 1.05<br />price: 4866<br />cut: Ideal","carat: 2.07<br />price: 17614<br />cut: Ideal","carat: 0.70<br />price: 2723<br />cut: Ideal","carat: 0.93<br />price: 4724<br />cut: Ideal","carat: 2.01<br />price: 12565<br />cut: Ideal","carat: 0.44<br />price: 1235<br />cut: Ideal","carat: 0.53<br />price: 1956<br />cut: Ideal","carat: 1.01<br />price: 4617<br />cut: Ideal","carat: 0.90<br />price: 4054<br />cut: Ideal","carat: 0.38<br />price: 954<br />cut: Ideal","carat: 0.90<br />price: 3677<br />cut: Ideal","carat: 0.59<br />price: 1292<br />cut: Ideal","carat: 1.18<br />price: 6013<br />cut: Ideal","carat: 1.20<br />price: 8590<br />cut: Ideal","carat: 0.37<br />price: 815<br />cut: Ideal","carat: 0.96<br />price: 4333<br />cut: Ideal","carat: 0.50<br />price: 1400<br />cut: Ideal","carat: 0.53<br />price: 844<br />cut: Ideal","carat: 1.07<br />price: 7275<br />cut: Ideal","carat: 0.31<br />price: 778<br />cut: Ideal","carat: 0.72<br />price: 3257<br />cut: Ideal","carat: 0.33<br />price: 434<br />cut: Ideal","carat: 1.26<br />price: 10916<br />cut: Ideal","carat: 0.61<br />price: 2907<br />cut: Ideal","carat: 0.57<br />price: 1760<br />cut: Ideal","carat: 0.53<br />price: 2015<br />cut: Ideal","carat: 1.04<br />price: 4659<br />cut: Ideal","carat: 1.05<br />price: 10872<br />cut: Ideal","carat: 0.52<br />price: 1909<br />cut: Ideal","carat: 0.36<br />price: 525<br />cut: Ideal","carat: 0.41<br />price: 1439<br />cut: Ideal","carat: 0.35<br />price: 921<br />cut: Ideal","carat: 1.24<br />price: 8726<br />cut: Ideal","carat: 0.32<br />price: 720<br />cut: Ideal","carat: 0.60<br />price: 2061<br />cut: Ideal","carat: 1.05<br />price: 6196<br />cut: Ideal","carat: 1.07<br />price: 5280<br />cut: Ideal","carat: 0.51<br />price: 1354<br />cut: Ideal","carat: 1.14<br />price: 7371<br />cut: Ideal","carat: 0.30<br />price: 709<br />cut: Ideal","carat: 0.50<br />price: 1747<br />cut: Ideal","carat: 0.57<br />price: 1819<br />cut: Ideal","carat: 2.01<br />price: 12338<br />cut: Ideal","carat: 0.40<br />price: 1158<br />cut: Ideal","carat: 0.53<br />price: 1314<br />cut: Ideal","carat: 0.40<br />price: 737<br />cut: Ideal","carat: 1.43<br />price: 8599<br />cut: Ideal","carat: 0.41<br />price: 1007<br />cut: Ideal","carat: 0.58<br />price: 2067<br />cut: Ideal","carat: 0.32<br />price: 371<br />cut: Ideal","carat: 1.11<br />price: 6129<br />cut: Ideal","carat: 1.51<br />price: 12100<br />cut: Ideal","carat: 0.36<br />price: 631<br />cut: Ideal","carat: 0.50<br />price: 1923<br />cut: Ideal","carat: 0.72<br />price: 3708<br />cut: Ideal","carat: 0.30<br />price: 621<br />cut: Ideal","carat: 0.38<br />price: 744<br />cut: Ideal","carat: 0.72<br />price: 2511<br />cut: Ideal","carat: 1.51<br />price: 7695<br />cut: Ideal","carat: 0.72<br />price: 2797<br />cut: Ideal","carat: 0.32<br />price: 1066<br />cut: Ideal","carat: 0.34<br />price: 956<br />cut: Ideal","carat: 1.66<br />price: 10338<br />cut: Ideal","carat: 1.18<br />price: 6960<br />cut: Ideal","carat: 0.73<br />price: 3183<br />cut: Ideal","carat: 0.50<br />price: 1624<br />cut: Ideal","carat: 0.58<br />price: 2772<br />cut: Ideal","carat: 0.56<br />price: 1723<br />cut: Ideal","carat: 0.37<br />price: 552<br />cut: Ideal","carat: 0.73<br />price: 1902<br />cut: Ideal","carat: 1.20<br />price: 8545<br />cut: Ideal","carat: 0.31<br />price: 734<br />cut: Ideal","carat: 0.40<br />price: 667<br />cut: Ideal","carat: 0.30<br />price: 1013<br />cut: Ideal","carat: 0.35<br />price: 767<br />cut: Ideal","carat: 0.72<br />price: 3004<br />cut: Ideal","carat: 0.42<br />price: 773<br />cut: Ideal","carat: 0.30<br />price: 658<br />cut: Ideal","carat: 0.42<br />price: 984<br />cut: Ideal","carat: 0.35<br />price: 923<br />cut: Ideal","carat: 2.00<br />price: 16650<br />cut: Ideal","carat: 0.54<br />price: 2307<br />cut: Ideal","carat: 0.31<br />price: 489<br />cut: Ideal","carat: 0.30<br />price: 605<br />cut: Ideal","carat: 0.40<br />price: 945<br />cut: Ideal","carat: 1.50<br />price: 8736<br />cut: Ideal","carat: 0.37<br />price: 737<br />cut: Ideal","carat: 0.32<br />price: 828<br />cut: Ideal","carat: 0.75<br />price: 2801<br />cut: Ideal","carat: 1.03<br />price: 5021<br />cut: Ideal","carat: 0.32<br />price: 803<br />cut: Ideal","carat: 0.52<br />price: 1576<br />cut: Ideal","carat: 0.39<br />price: 1031<br />cut: Ideal","carat: 0.32<br />price: 828<br />cut: Ideal","carat: 0.56<br />price: 2429<br />cut: Ideal"],"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgba(253,231,37,1)","opacity":1,"size":5.6692913385826778,"symbol":"circle","line":{"width":1.8897637795275593,"color":"rgba(253,231,37,1)"}},"hoveron":"points","name":"Ideal","legendgroup":"Ideal","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text","frame":null}],"layout":{"margin":{"t":26.228310502283104,"r":7.3059360730593621,"b":28.493150684931511,"l":25.570776255707766},"plot_bgcolor":"rgba(235,235,235,1)","paper_bgcolor":"rgba(255,255,255,1)","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724},"xaxis":{"domain":[0,1],"automargin":true,"type":"linear","autorange":false,"range":[-0.0089999999999999802,5.2489999999999997],"tickmode":"array","ticktext":["0","1","2","3","4","5"],"tickvals":[0,0.99999999999999989,2,3,4,5],"categoryorder":"array","categoryarray":["0","1","2","3","4","5"],"nticks":null,"ticks":"outside","tickcolor":"rgba(51,51,51,1)","ticklen":3.6529680365296811,"tickwidth":0.66417600664176002,"showticklabels":false,"tickfont":{"color":null,"family":null,"size":0},"tickangle":-0,"showline":false,"linecolor":null,"linewidth":0,"showgrid":true,"gridcolor":"rgba(255,255,255,1)","gridwidth":0.66417600664176002,"zeroline":false,"anchor":"y","title":{"text":"carat","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724}},"hoverformat":".2f"},"yaxis":{"domain":[0,1],"automargin":true,"type":"linear","autorange":false,"range":[-556.45000000000005,19627.450000000001],"tickmode":"array","ticktext":["0","5000","10000","15000"],"tickvals":[0,5000,10000,15000],"categoryorder":"array","categoryarray":["0","5000","10000","15000"],"nticks":null,"ticks":"outside","tickcolor":"rgba(51,51,51,1)","ticklen":3.6529680365296811,"tickwidth":0.66417600664176002,"showticklabels":false,"tickfont":{"color":null,"family":null,"size":0},"tickangle":-0,"showline":false,"linecolor":null,"linewidth":0,"showgrid":true,"gridcolor":"rgba(255,255,255,1)","gridwidth":0.66417600664176002,"zeroline":false,"anchor":"x","title":{"text":"price","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724}},"hoverformat":".2f"},"shapes":[{"type":"rect","fillcolor":null,"line":{"color":null,"width":0,"linetype":[]},"yref":"paper","xref":"paper","x0":0,"x1":1,"y0":0,"y1":1}],"showlegend":true,"legend":{"bgcolor":"rgba(255,255,255,1)","bordercolor":"transparent","borderwidth":1.8897637795275593,"font":{"color":"rgba(0,0,0,1)","family":"","size":11.68949771689498},"title":{"text":"cut","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724}}},"hovermode":"closest","barmode":"relative"},"config":{"doubleClick":"reset","modeBarButtonsToAdd":["hoverclosest","hovercompare"],"showSendToCloud":false},"source":"A","attrs":{"34ae10bee21d":{"x":{},"y":{},"colour":{},"type":"scatter"}},"cur_data":"34ae10bee21d","visdat":{"34ae10bee21d":["function (y) ","x"]},"highlight":{"on":"plotly_click","persistent":false,"dynamic":false,"selectize":false,"opacityDim":0.20000000000000001,"selected":{"opacity":1},"debounce":0},"shinyEvents":["plotly_hover","plotly_click","plotly_selected","plotly_relayout","plotly_brushed","plotly_brushing","plotly_clickannotation","plotly_doubleclick","plotly_deselect","plotly_afterplot","plotly_sunburstclick"],"base_url":"https://plot.ly"},"evals":[],"jsHooks":[]}</script> <h2>Vertical Text Orientation</h2> <div class="highlight"><pre><code class="language-r" data-lang="r"><span class="n">library</span><span class="p">(</span><span class="n">plotly</span><span class="p">)</span><span class="w"> </span><span class="n">library</span><span class="p">(</span><span class="n">ggplot2</span><span class="p">)</span><span class="w"> </span><span class="n">lab</span><span class="w"> </span><span class="o"><-</span><span class="w"> </span><span class="n">paste</span><span class="p">(</span><span class="s2">"Vertical Label"</span><span class="p">,</span><span class="w"> </span><span class="nf">c</span><span class="p">(</span><span class="m">1</span><span class="p">,</span><span class="w"> </span><span class="m">2</span><span class="p">,</span><span class="w"> </span><span class="m">3</span><span class="p">,</span><span class="w"> </span><span class="m">4</span><span class="p">,</span><span class="w"> </span><span class="m">5</span><span class="p">))</span><span class="w"> </span><span class="n">ds</span><span class="w"> </span><span class="o"><-</span><span class="w"> </span><span class="n">data.frame</span><span class="p">(</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">sample</span><span class="p">(</span><span class="n">lab</span><span class="p">,</span><span class="w"> </span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="m">1000</span><span class="p">,</span><span class="w"> </span><span class="n">replace</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">T</span><span class="p">),</span><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">sample</span><span class="p">(</span><span class="nb">LETTERS</span><span class="p">[</span><span class="m">1</span><span class="o">:</span><span class="m">5</span><span class="p">],</span><span class="w"> </span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="m">1000</span><span class="p">,</span><span class="w"> </span><span class="n">replace</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">T</span><span class="p">))</span><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o"><-</span><span class="w"> </span><span class="n">ggplot</span><span class="p">(</span><span class="n">ds</span><span class="p">,</span><span class="w"> </span><span class="n">aes</span><span class="p">(</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">fill</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">y</span><span class="p">))</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">geom_bar</span><span class="p">()</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">theme</span><span class="p">(</span><span class="n">axis.text.x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">element_text</span><span class="p">(</span><span class="n">angle</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="m">90</span><span class="p">))</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">ggtitle</span><span class="p">(</span><span class="s2">"Vertical Axis Labels"</span><span class="p">)</span><span class="w"> </span><span class="n">ggplotly</span><span class="p">(</span><span class="n">p</span><span class="p">)</span><span class="w"> </span></code></pre></div> <div class="plotly html-widget html-fill-item" id="htmlwidget-e09f63e90d4d06c7a1bb" style="width:672px;height:480px;"></div> <script type="application/json" data-for="htmlwidget-e09f63e90d4d06c7a1bb">{"x":{"data":[{"orientation":"v","width":[0.89999999999999991,0.90000000000000013,0.90000000000000036,0.90000000000000036,0.90000000000000036],"base":[146,182,165,152,166],"x":[1,2,3,4,5],"y":[38,42,33,36,40],"text":["count: 38<br />x: Vertical Label 1<br />y: A","count: 42<br />x: Vertical Label 2<br />y: A","count: 33<br />x: Vertical Label 3<br />y: A","count: 36<br />x: Vertical Label 4<br />y: A","count: 40<br />x: Vertical Label 5<br />y: A"],"type":"bar","textposition":"none","marker":{"autocolorscale":false,"color":"rgba(248,118,109,1)","line":{"width":1.8897637795275593,"color":"transparent"}},"name":"A","legendgroup":"A","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text","frame":null},{"orientation":"v","width":[0.89999999999999991,0.90000000000000013,0.90000000000000036,0.90000000000000036,0.90000000000000036],"base":[102,131,124,115,124],"x":[1,2,3,4,5],"y":[44,51,41,37,42],"text":["count: 44<br />x: Vertical Label 1<br />y: B","count: 51<br />x: Vertical Label 2<br />y: B","count: 41<br />x: Vertical Label 3<br />y: B","count: 37<br />x: Vertical Label 4<br />y: B","count: 42<br />x: Vertical Label 5<br />y: B"],"type":"bar","textposition":"none","marker":{"autocolorscale":false,"color":"rgba(163,165,0,1)","line":{"width":1.8897637795275593,"color":"transparent"}},"name":"B","legendgroup":"B","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text","frame":null},{"orientation":"v","width":[0.89999999999999991,0.90000000000000013,0.90000000000000036,0.90000000000000036,0.90000000000000036],"base":[67,80,86,82,80],"x":[1,2,3,4,5],"y":[35,51,38,33,44],"text":["count: 35<br />x: Vertical Label 1<br />y: C","count: 51<br />x: Vertical Label 2<br />y: C","count: 38<br />x: Vertical Label 3<br />y: C","count: 33<br />x: Vertical Label 4<br />y: C","count: 44<br />x: Vertical Label 5<br />y: C"],"type":"bar","textposition":"none","marker":{"autocolorscale":false,"color":"rgba(0,191,125,1)","line":{"width":1.8897637795275593,"color":"transparent"}},"name":"C","legendgroup":"C","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text","frame":null},{"orientation":"v","width":[0.89999999999999991,0.90000000000000013,0.90000000000000036,0.90000000000000036,0.90000000000000036],"base":[36,41,47,46,40],"x":[1,2,3,4,5],"y":[31,39,39,36,40],"text":["count: 31<br />x: Vertical Label 1<br />y: D","count: 39<br />x: Vertical Label 2<br />y: D","count: 39<br />x: Vertical Label 3<br />y: D","count: 36<br />x: Vertical Label 4<br />y: D","count: 40<br />x: Vertical Label 5<br />y: D"],"type":"bar","textposition":"none","marker":{"autocolorscale":false,"color":"rgba(0,176,246,1)","line":{"width":1.8897637795275593,"color":"transparent"}},"name":"D","legendgroup":"D","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text","frame":null},{"orientation":"v","width":[0.89999999999999991,0.90000000000000013,0.90000000000000036,0.90000000000000036,0.90000000000000036],"base":[0,0,0,0,0],"x":[1,2,3,4,5],"y":[36,41,47,46,40],"text":["count: 36<br />x: Vertical Label 1<br />y: E","count: 41<br />x: Vertical Label 2<br />y: E","count: 47<br />x: Vertical Label 3<br />y: E","count: 46<br />x: Vertical Label 4<br />y: E","count: 40<br />x: Vertical Label 5<br />y: E"],"type":"bar","textposition":"none","marker":{"autocolorscale":false,"color":"rgba(231,107,243,1)","line":{"width":1.8897637795275593,"color":"transparent"}},"name":"E","legendgroup":"E","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text","frame":null}],"layout":{"margin":{"t":43.762557077625573,"r":7.3059360730593621,"b":122.00913242009135,"l":43.105022831050235},"plot_bgcolor":"rgba(235,235,235,1)","paper_bgcolor":"rgba(255,255,255,1)","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724},"title":{"text":"Vertical Axis Labels","font":{"color":"rgba(0,0,0,1)","family":"","size":17.534246575342465},"x":0,"xref":"paper"},"xaxis":{"domain":[0,1],"automargin":true,"type":"linear","autorange":false,"range":[0.40000000000000002,5.5999999999999996],"tickmode":"array","ticktext":["Vertical Label 1","Vertical Label 2","Vertical Label 3","Vertical Label 4","Vertical Label 5"],"tickvals":[1,2,3,4,5],"categoryorder":"array","categoryarray":["Vertical Label 1","Vertical Label 2","Vertical Label 3","Vertical Label 4","Vertical Label 5"],"nticks":null,"ticks":"outside","tickcolor":"rgba(51,51,51,1)","ticklen":3.6529680365296811,"tickwidth":0.66417600664176002,"showticklabels":true,"tickfont":{"color":"rgba(77,77,77,1)","family":"","size":11.68949771689498},"tickangle":-90,"showline":false,"linecolor":null,"linewidth":0,"showgrid":true,"gridcolor":"rgba(255,255,255,1)","gridwidth":0.66417600664176002,"zeroline":false,"anchor":"y","title":{"text":"x","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724}},"hoverformat":".2f"},"yaxis":{"domain":[0,1],"automargin":true,"type":"linear","autorange":false,"range":[-11.200000000000001,235.19999999999999],"tickmode":"array","ticktext":["0","50","100","150","200"],"tickvals":[0,50,100,150,200],"categoryorder":"array","categoryarray":["0","50","100","150","200"],"nticks":null,"ticks":"outside","tickcolor":"rgba(51,51,51,1)","ticklen":3.6529680365296811,"tickwidth":0.66417600664176002,"showticklabels":true,"tickfont":{"color":"rgba(77,77,77,1)","family":"","size":11.68949771689498},"tickangle":-0,"showline":false,"linecolor":null,"linewidth":0,"showgrid":true,"gridcolor":"rgba(255,255,255,1)","gridwidth":0.66417600664176002,"zeroline":false,"anchor":"x","title":{"text":"count","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724}},"hoverformat":".2f"},"shapes":[{"type":"rect","fillcolor":null,"line":{"color":null,"width":0,"linetype":[]},"yref":"paper","xref":"paper","x0":0,"x1":1,"y0":0,"y1":1}],"showlegend":true,"legend":{"bgcolor":"rgba(255,255,255,1)","bordercolor":"transparent","borderwidth":1.8897637795275593,"font":{"color":"rgba(0,0,0,1)","family":"","size":11.68949771689498},"title":{"text":"y","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724}}},"hovermode":"closest","barmode":"relative"},"config":{"doubleClick":"reset","modeBarButtonsToAdd":["hoverclosest","hovercompare"],"showSendToCloud":false},"source":"A","attrs":{"34ae10dd91d8":{"x":{},"fill":{},"type":"bar"}},"cur_data":"34ae10dd91d8","visdat":{"34ae10dd91d8":["function (y) ","x"]},"highlight":{"on":"plotly_click","persistent":false,"dynamic":false,"selectize":false,"opacityDim":0.20000000000000001,"selected":{"opacity":1},"debounce":0},"shinyEvents":["plotly_hover","plotly_click","plotly_selected","plotly_relayout","plotly_brushed","plotly_brushing","plotly_clickannotation","plotly_doubleclick","plotly_deselect","plotly_afterplot","plotly_sunburstclick"],"base_url":"https://plot.ly"},"evals":[],"jsHooks":[]}</script> <h2>Angled Text Orientation</h2> <div class="highlight"><pre><code class="language-r" data-lang="r"><span class="n">library</span><span class="p">(</span><span class="n">plotly</span><span class="p">)</span><span class="w"> </span><span class="n">library</span><span class="p">(</span><span class="n">ggplot2</span><span class="p">)</span><span class="w"> </span><span class="n">lab</span><span class="w"> </span><span class="o"><-</span><span class="w"> </span><span class="n">paste</span><span class="p">(</span><span class="s2">"Angle Label"</span><span class="p">,</span><span class="w"> </span><span class="nf">c</span><span class="p">(</span><span class="m">1</span><span class="p">,</span><span class="w"> </span><span class="m">2</span><span class="p">,</span><span class="w"> </span><span class="m">3</span><span class="p">,</span><span class="w"> </span><span class="m">4</span><span class="p">,</span><span class="w"> </span><span class="m">5</span><span class="p">))</span><span class="w"> </span><span class="n">ds</span><span class="w"> </span><span class="o"><-</span><span class="w"> </span><span class="n">data.frame</span><span class="p">(</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">sample</span><span class="p">(</span><span class="n">lab</span><span class="p">,</span><span class="w"> </span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="m">1000</span><span class="p">,</span><span class="w"> </span><span class="n">replace</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">T</span><span class="p">),</span><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">sample</span><span class="p">(</span><span class="nb">LETTERS</span><span class="p">[</span><span class="m">1</span><span class="o">:</span><span class="m">5</span><span class="p">],</span><span class="w"> </span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="m">1000</span><span class="p">,</span><span class="w"> </span><span class="n">replace</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">T</span><span class="p">))</span><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o"><-</span><span class="w"> </span><span class="n">ggplot</span><span class="p">(</span><span class="n">ds</span><span class="p">,</span><span class="w"> </span><span class="n">aes</span><span class="p">(</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">fill</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">y</span><span class="p">))</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">geom_bar</span><span class="p">()</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">theme</span><span class="p">(</span><span class="n">axis.text.x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">element_text</span><span class="p">(</span><span class="n">angle</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="m">45</span><span class="p">))</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">ggtitle</span><span class="p">(</span><span class="s2">"Angle Axis Labels"</span><span class="p">)</span><span class="w"> </span><span class="n">ggplotly</span><span class="p">(</span><span class="n">p</span><span class="p">)</span><span class="w"> </span></code></pre></div> <div class="plotly html-widget html-fill-item" id="htmlwidget-66914a7ef51da9b7cec1" style="width:672px;height:480px;"></div> <script type="application/json" data-for="htmlwidget-66914a7ef51da9b7cec1">{"x":{"data":[{"orientation":"v","width":[0.89999999999999991,0.90000000000000013,0.90000000000000036,0.90000000000000036,0.90000000000000036],"base":[145,154,170,153,175],"x":[1,2,3,4,5],"y":[43,37,35,48,40],"text":["count: 43<br />x: Angle Label 1<br />y: A","count: 37<br />x: Angle Label 2<br />y: A","count: 35<br />x: Angle Label 3<br />y: A","count: 48<br />x: Angle Label 4<br />y: A","count: 40<br />x: Angle Label 5<br />y: A"],"type":"bar","textposition":"none","marker":{"autocolorscale":false,"color":"rgba(248,118,109,1)","line":{"width":1.8897637795275593,"color":"transparent"}},"name":"A","legendgroup":"A","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text","frame":null},{"orientation":"v","width":[0.89999999999999991,0.90000000000000013,0.90000000000000036,0.90000000000000036,0.90000000000000036],"base":[113,120,129,103,142],"x":[1,2,3,4,5],"y":[32,34,41,50,33],"text":["count: 32<br />x: Angle Label 1<br />y: B","count: 34<br />x: Angle Label 2<br />y: B","count: 41<br />x: Angle Label 3<br />y: B","count: 50<br />x: Angle Label 4<br />y: B","count: 33<br />x: Angle Label 5<br />y: B"],"type":"bar","textposition":"none","marker":{"autocolorscale":false,"color":"rgba(163,165,0,1)","line":{"width":1.8897637795275593,"color":"transparent"}},"name":"B","legendgroup":"B","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text","frame":null},{"orientation":"v","width":[0.89999999999999991,0.90000000000000013,0.90000000000000036,0.90000000000000036,0.90000000000000036],"base":[72,82,86,70,89],"x":[1,2,3,4,5],"y":[41,38,43,33,53],"text":["count: 41<br />x: Angle Label 1<br />y: C","count: 38<br />x: Angle Label 2<br />y: C","count: 43<br />x: Angle Label 3<br />y: C","count: 33<br />x: Angle Label 4<br />y: C","count: 53<br />x: Angle Label 5<br />y: C"],"type":"bar","textposition":"none","marker":{"autocolorscale":false,"color":"rgba(0,191,125,1)","line":{"width":1.8897637795275593,"color":"transparent"}},"name":"C","legendgroup":"C","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text","frame":null},{"orientation":"v","width":[0.89999999999999991,0.90000000000000013,0.90000000000000036,0.90000000000000036,0.90000000000000036],"base":[36,43,40,42,49],"x":[1,2,3,4,5],"y":[36,39,46,28,40],"text":["count: 36<br />x: Angle Label 1<br />y: D","count: 39<br />x: Angle Label 2<br />y: D","count: 46<br />x: Angle Label 3<br />y: D","count: 28<br />x: Angle Label 4<br />y: D","count: 40<br />x: Angle Label 5<br />y: D"],"type":"bar","textposition":"none","marker":{"autocolorscale":false,"color":"rgba(0,176,246,1)","line":{"width":1.8897637795275593,"color":"transparent"}},"name":"D","legendgroup":"D","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text","frame":null},{"orientation":"v","width":[0.89999999999999991,0.90000000000000013,0.90000000000000036,0.90000000000000036,0.90000000000000036],"base":[0,0,0,0,0],"x":[1,2,3,4,5],"y":[36,43,40,42,49],"text":["count: 36<br />x: Angle Label 1<br />y: E","count: 43<br />x: Angle Label 2<br />y: E","count: 40<br />x: Angle Label 3<br />y: E","count: 42<br />x: Angle Label 4<br />y: E","count: 49<br />x: Angle Label 5<br />y: E"],"type":"bar","textposition":"none","marker":{"autocolorscale":false,"color":"rgba(231,107,243,1)","line":{"width":1.8897637795275593,"color":"transparent"}},"name":"E","legendgroup":"E","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text","frame":null}],"layout":{"margin":{"t":43.762557077625573,"r":7.3059360730593621,"b":68.877629846825656,"l":43.105022831050235},"plot_bgcolor":"rgba(235,235,235,1)","paper_bgcolor":"rgba(255,255,255,1)","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724},"title":{"text":"Angle Axis Labels","font":{"color":"rgba(0,0,0,1)","family":"","size":17.534246575342465},"x":0,"xref":"paper"},"xaxis":{"domain":[0,1],"automargin":true,"type":"linear","autorange":false,"range":[0.40000000000000002,5.5999999999999996],"tickmode":"array","ticktext":["Angle Label 1","Angle Label 2","Angle Label 3","Angle Label 4","Angle Label 5"],"tickvals":[1,2,3,4,5],"categoryorder":"array","categoryarray":["Angle Label 1","Angle Label 2","Angle Label 3","Angle Label 4","Angle Label 5"],"nticks":null,"ticks":"outside","tickcolor":"rgba(51,51,51,1)","ticklen":3.6529680365296811,"tickwidth":0.66417600664176002,"showticklabels":true,"tickfont":{"color":"rgba(77,77,77,1)","family":"","size":11.68949771689498},"tickangle":-45,"showline":false,"linecolor":null,"linewidth":0,"showgrid":true,"gridcolor":"rgba(255,255,255,1)","gridwidth":0.66417600664176002,"zeroline":false,"anchor":"y","title":{"text":"x","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724}},"hoverformat":".2f"},"yaxis":{"domain":[0,1],"automargin":true,"type":"linear","autorange":false,"range":[-10.75,225.75],"tickmode":"array","ticktext":["0","50","100","150","200"],"tickvals":[0,50.000000000000007,100,150,200],"categoryorder":"array","categoryarray":["0","50","100","150","200"],"nticks":null,"ticks":"outside","tickcolor":"rgba(51,51,51,1)","ticklen":3.6529680365296811,"tickwidth":0.66417600664176002,"showticklabels":true,"tickfont":{"color":"rgba(77,77,77,1)","family":"","size":11.68949771689498},"tickangle":-0,"showline":false,"linecolor":null,"linewidth":0,"showgrid":true,"gridcolor":"rgba(255,255,255,1)","gridwidth":0.66417600664176002,"zeroline":false,"anchor":"x","title":{"text":"count","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724}},"hoverformat":".2f"},"shapes":[{"type":"rect","fillcolor":null,"line":{"color":null,"width":0,"linetype":[]},"yref":"paper","xref":"paper","x0":0,"x1":1,"y0":0,"y1":1}],"showlegend":true,"legend":{"bgcolor":"rgba(255,255,255,1)","bordercolor":"transparent","borderwidth":1.8897637795275593,"font":{"color":"rgba(0,0,0,1)","family":"","size":11.68949771689498},"title":{"text":"y","font":{"color":"rgba(0,0,0,1)","family":"","size":14.611872146118724}}},"hovermode":"closest","barmode":"relative"},"config":{"doubleClick":"reset","modeBarButtonsToAdd":["hoverclosest","hovercompare"],"showSendToCloud":false},"source":"A","attrs":{"34ae5ef36b04":{"x":{},"fill":{},"type":"bar"}},"cur_data":"34ae5ef36b04","visdat":{"34ae5ef36b04":["function (y) ","x"]},"highlight":{"on":"plotly_click","persistent":false,"dynamic":false,"selectize":false,"opacityDim":0.20000000000000001,"selected":{"opacity":1},"debounce":0},"shinyEvents":["plotly_hover","plotly_click","plotly_selected","plotly_relayout","plotly_brushed","plotly_brushing","plotly_clickannotation","plotly_doubleclick","plotly_deselect","plotly_afterplot","plotly_sunburstclick"],"base_url":"https://plot.ly"},"evals":[],"jsHooks":[]}</script> <h3>What About Dash?</h3> <p><a href="https://dashr.plot.ly/">Dash for R</a> is an open-source framework for building analytical applications, with no Javascript required, and it is tightly integrated with the Plotly graphing library. </p> <p>Learn about how to install Dash for R at https://dashr.plot.ly/installation.</p> <p>Everywhere in this page that you see <code>fig</code>, you can display the same figure in a Dash for R application by passing it to the <code>figure</code> argument of the <a href="https://dashr.plot.ly/dash-core-components/graph"><code>Graph</code> component</a> from the built-in <code>dashCoreComponents</code> package like this:</p> <div class="highlight"><pre><code class="language-r" data-lang="r"><span class="n">library</span><span class="p">(</span><span class="n">plotly</span><span class="p">)</span><span class="w"> </span><span class="n">fig</span><span class="w"> </span><span class="o"><-</span><span class="w"> </span><span class="n">plot_ly</span><span class="p">()</span><span class="w"> </span><span class="c1"># fig <- fig %>% add_trace( ... )</span><span class="w"> </span><span class="c1"># fig <- fig %>% layout( ... ) </span><span class="w"> </span><span class="n">library</span><span class="p">(</span><span class="n">dash</span><span class="p">)</span><span class="w"> </span><span class="n">library</span><span class="p">(</span><span class="n">dashCoreComponents</span><span class="p">)</span><span class="w"> </span><span class="n">library</span><span class="p">(</span><span class="n">dashHtmlComponents</span><span class="p">)</span><span class="w"> </span><span class="n">app</span><span class="w"> </span><span class="o"><-</span><span class="w"> </span><span class="n">Dash</span><span class="o">$</span><span class="n">new</span><span class="p">()</span><span class="w"> </span><span class="n">app</span><span class="o">$</span><span class="n">layout</span><span class="p">(</span><span class="w"> </span><span class="n">htmlDiv</span><span class="p">(</span><span class="w"> </span><span class="nf">list</span><span class="p">(</span><span class="w"> </span><span class="n">dccGraph</span><span class="p">(</span><span class="n">figure</span><span class="o">=</span><span class="n">fig</span><span class="p">)</span><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="n">app</span><span class="o">$</span><span class="n">run_server</span><span class="p">(</span><span class="n">debug</span><span class="o">=</span><span class="kc">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">dev_tools_hot_reload</span><span class="o">=</span><span class="kc">FALSE</span><span class="p">)</span><span class="w"> </span></code></pre></div> </section> <!--End Plotly Basics Section--> </section> </div> </main> <script> var array = []; $('.tutorial-content :header:not(h6)').each(function (i, e) { var item = $(e); var itemText = item.text(); var hash = itemText.replace(/[^a-z0-9\s]/gi, '').replace(/[_\s]/g, '-').replace(/^-+|-+$/g, '').toLowerCase(); item.attr("id", hash); array.push({text: itemText, tag: item.prop("tagName"), hash: hash}); }); $("#nav_header_insertion_list").html(array.map(function(entry) { var text = entry.text.replace(/[^a-z0-9\s\.:\-\?\!\(\))]/gi, ''); if(entry.tag.toLowerCase() < "h4"){ return('<li class="--sidebar-item"><a href="#' + entry.hash + '">' + text + '</a></li>'); } else { return('<li class="--sidebar-item"><a href="#' + entry.hash + '">' + text + '</a></li>'); } }).join("")); //$(".tutorial-content :header:not(h6)").append( "\<div class=\"icon copy\" data-tooltip=\"Click to copy direct link\"><svg style=\"width:24px;height:24px\" viewBox=\"0 0 24 24\"><path fill=\"#000000\" d=\"M10.59,13.41C11,13.8 11,14.44 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C7.22,12.88 7.22,9.71 9.17,7.76V7.76L12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.59,9.17C9.41,10.34 9.41,12.24 10.59,13.41M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.78,11.12 16.78,14.29 14.83,16.24V16.24L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L13.41,14.83C14.59,13.66 14.59,11.76 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z\"/> </svg> </div>"); </script> <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>			 <ul> 				 <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> 		 <li class="--footer-column"> <h6 style="color:#e763fa" class="--footer-heading">Products</h6>			 <ul> <li><a href="https://plotly.com/dash/" target="_self">Dash</a></li> 				 				 <li><a href="https://plotly.com/consulting-and-oem/" target="_self">Consulting and Training</a></li> </ul> </li> 		 <li class="--footer-column"> <h6 style="color:#636efa" class="--footer-heading">Pricing</h6>			 <ul> <li><a href="https://plotly.com/get-pricing/" target="_self">Enterprise Pricing</a></li> 				 </ul> </li> 		 <li class="--footer-column"> <h6 style="color:#00cc96" class="--footer-heading">About Us</h6>			 <ul> <li><a href="https://plotly.com/careers" target="_self">Careers</a></li> 				 <li><a href="https://plotly.com/resources/" target="_self">Resources</a></li> 				 <li><a href="https://medium.com/@plotlygraphs" target="_self">Blog</a></li> 				 </ul> </li> 		 <li class="--footer-column"> <h6 style="color:#EF553B" class="--footer-heading">Support</h6>			 <ul> <li><a href="https://community.plot.ly/" target="_self">Community Support</a></li> 				 <li><a href="https://plotly.com/graphing-libraries" target="_self">Documentation</a></li> 				 </ul> </li> </ul> </div> </section> <section class="--footer-meta"> <div class="--wrap"> <div class="left"> <article class="--copyright">Copyright © 2025 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">×</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 = "ggplot2"; </script> <!-- ALGOLIA SEARCH --> <script> window.ALGOLIA_CONFIG = { 'applicationId': '7EK9KHJW8M', 'indexName': 'ggplot2_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=2025-03-21-13-39"></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>