Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 1.84 KB

2011-11-29-scale-y.md

File metadata and controls

60 lines (44 loc) · 1.84 KB
title name permalink description layout thumbnail language page_type has_thumbnail display_as output
ggplot2 scale_y_continuous | Examples | Plotly
scale_y_continuous
ggplot2/scale-y/
How to use logarithmic scales with ggplot2 axes.
base
thumbnail/log.jpg
ggplot2
example_index
true
layout_opt
html_document
keep_md
true

New to Plotly?

Plotly's R library is free and open source!
Get started by downloading the client and reading the primer.
You can set up Plotly to work in online or offline mode.
We also have a quick-reference cheatsheet (new!) to help you get started!

Version Check

Version 4 of Plotly's R package is now available!
Check out this post for more information on breaking changes and new features available in this version.

library(plotly)
packageVersion('plotly')
## [1] '4.5.6.9000'

Basic

library(plotly)

p <- ggplot(diamonds, aes(color, log10(price))) +
    geom_boxplot() +
    scale_y_continuous("Price, log10-scaling")

p <- ggplotly(p)

# Create a shareable link to your chart
# Set up API credentials: https://plot.ly/r/getting-started
chart_link = plotly_POST(p, filename="scaley/basic")
chart_link
<iframe src="https://plot.ly/~RPlotBot/4198.embed" width="800" height="600" id="igraph" scrolling="no" seamless="seamless" frameBorder="0"> </iframe> Inspired by Stack Overflow.