Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
29523d3
fix links
LiamConnors May 27, 2024
07479b3
remove examples that no longer run
LiamConnors May 27, 2024
9df3a21
Update 2021-08-04-legend.Rmd
LiamConnors May 27, 2024
a27be62
Update 2021-08-04-log-plot.Rmd
LiamConnors May 27, 2024
753444e
Update 2021-08-04-strip-charts.Rmd
LiamConnors May 27, 2024
0d13036
Update DESCRIPTION
LiamConnors May 27, 2024
f734bfc
fix stock name
LiamConnors May 27, 2024
5e53a75
Update DESCRIPTION
LiamConnors May 27, 2024
1338f69
Delete 2021-07-26-ml-roc-pr.Rmd
LiamConnors May 28, 2024
67b2c43
specify tidyverse image
LiamConnors May 28, 2024
93368b2
revert adding depdenencies
LiamConnors May 28, 2024
97c7884
Update config.yml
LiamConnors May 28, 2024
092d803
Update config.yml
LiamConnors May 28, 2024
797d9cf
Delete 2021-08-18-discrete-colors.Rmd
LiamConnors May 28, 2024
b21aad4
fix stock name
LiamConnors May 28, 2024
250703b
Delete 2021-08-04-network-graphs.Rmd
LiamConnors May 28, 2024
e3c82bb
Create 2021-08-18-discrete-colors.Rmd
LiamConnors May 28, 2024
9d9a965
add back file
LiamConnors May 28, 2024
822ff61
Create 2017-01-13-mixed-subplot.Rmd
LiamConnors May 28, 2024
0fec8d3
Update DESCRIPTION
LiamConnors May 28, 2024
b871583
fix treemap images
LiamConnors May 28, 2024
343283a
Update 2021-08-04-splom.Rmd
LiamConnors May 28, 2024
e37cf9f
Update 2021-08-04-strip-charts.Rmd
LiamConnors May 28, 2024
9741c8c
Revert "Update DESCRIPTION"
LiamConnors May 28, 2024
f11e2ce
Revert "Create 2017-01-13-mixed-subplot.Rmd"
LiamConnors May 28, 2024
93686eb
Update 2021-08-18-discrete-colors.Rmd
LiamConnors May 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix links
  • Loading branch information
LiamConnors committed May 27, 2024
commit 29523d39fa823226f243d9221867ec1cdd0a8186
10 changes: 5 additions & 5 deletions r/2015-07-30-text-and-annotations.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ fig

### Controlling text fontsize with uniformtext

For the [pie](/r/pie-charts), [bar](/r/bar-charts), [sunburst](/r/sunburst-charts) and [treemap](/r/treemap-charts) traces, it is possible to force all the text labels to have the same size thanks to the `uniformtext` layout parameter. The `minsize` attribute sets the font size, and the `mode` attribute sets what happens for labels which cannot fit with the desired fontsize: either `hide` them or `show` them with overflow.
For the [pie](/r/pie-charts), [bar](/r/bar-charts), [sunburst](/r/sunburst-charts) and [treemap](/r/treemaps) traces, it is possible to force all the text labels to have the same size thanks to the `uniformtext` layout parameter. The `minsize` attribute sets the font size, and the `mode` attribute sets what happens for labels which cannot fit with the desired fontsize: either `hide` them or `show` them with overflow.

```{r}
library(plotly)
Expand Down Expand Up @@ -228,10 +228,10 @@ library(plotly)

fig <- plot_ly()
fig <- fig %>% add_trace(
x = c("2017-01-01", "2017-02-10", "2017-03-20"),
y = c("A", "B", "C"),
z = c(1, 1000, 100000),
name = "z",
x = c("2017-01-01", "2017-02-10", "2017-03-20"),
y = c("A", "B", "C"),
z = c(1, 1000, 100000),
name = "z",
type = "scatter3d"
)
fig <- fig %>% layout(
Expand Down
8 changes: 4 additions & 4 deletions r/2019-09-26-gauge-charts.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ knitr::opts_chunk$set(message = FALSE, warning=FALSE)
The bar shows the target value, and the shading represents the progress toward that goal. Gauge charts, known as
speedometer charts as well. This chart type is usually used to illustrate key business indicators.

The example below displays a basic gauge chart with default attributes. For more information about different added attributes check [indicator](https://plotly.com/r/indicator/) tutorial.
The example below displays a basic gauge chart with default attributes.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice to see this removed.


```{r}
library(plotly)
Expand All @@ -32,7 +32,7 @@ fig <- plot_ly(
value = 270,
title = list(text = "Speed"),
type = "indicator",
mode = "gauge+number")
mode = "gauge+number")
fig <- fig %>%
layout(margin = list(l=20,r=30))

Expand Down Expand Up @@ -61,7 +61,7 @@ fig <- plot_ly(
threshold = list(
line = list(color = "red", width = 4),
thickness = 0.75,
value = 490)))
value = 490)))
fig <- fig %>%
layout(margin = list(l=20,r=30))

Expand Down Expand Up @@ -92,7 +92,7 @@ fig <- plot_ly(
threshold = list(
line = list(color = "red", width = 4),
thickness = 0.75,
value = 490)))
value = 490)))
fig <- fig %>%
layout(
margin = list(l=20,r=30),
Expand Down
4 changes: 2 additions & 2 deletions r/2021-08-21-map-configuration.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ fig

### Disabling Base Maps

In certain cases, such as large scale [choropleth maps](plotly.com/r/choropleth-maps/), the default physical map can be distracting. In this case the `layout$geo$visible` attribute can be set to `FALSE` to hide all base map attributes except those which are explicitly set to true. For example in the following map we hide all physical features except rivers and lakes, neither of which are shown by default:
In certain cases, such as large scale [choropleth maps](https://plotly.com/r/choropleth-maps/), the default physical map can be distracting. In this case the `layout$geo$visible` attribute can be set to `FALSE` to hide all base map attributes except those which are explicitly set to true. For example in the following map we hide all physical features except rivers and lakes, neither of which are shown by default:

```{r}
library(plotly)
Expand Down Expand Up @@ -97,7 +97,7 @@ In addition to physical base map features, a "cultural" base map is included whi

> Natural Earth Vector draws boundaries of countries according to defacto status. We show who actually controls the situation on the ground.

**To create a map with your own cultural features** please refer to our [choropleth documentation](plotly.com/r/choropleth-maps/).
**To create a map with your own cultural features** please refer to our [choropleth documentation](https://plotly.com/r/choropleth-maps/).

Here is a map with only cultural features enabled and styled, at a 1:50m resolution, which includes only country boundaries. See below for country sub-unit cultural base map features:

Expand Down