Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcdaa366

Browse files
author
Joseph Damiba
committed
remove broken example from images doc
1 parent0e5fc4a commitcdaa366

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

‎r/2020-02-25-images.Rmd‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -72,19 +72,5 @@ fig <- fig %>% layout(margin=list(l=10, r=10, b=0, t=0),
7272
fig
7373
```
7474

75-
###Combine image charts and other traces
76-
77-
```{r}
78-
library(plotly)
79-
library(EBImage)
80-
81-
img = readImage('https://upload.wikimedia.org/wikipedia/commons/thumb/0/00/Crab_Nebula.jpg/240px-Crab_Nebula.jpg')
82-
83-
fig <- plot_ly(type="image", z=img*250)
84-
fig <- fig %>% add_trace(
85-
type='scatter', y=c(50, 60), x=c(40, 50),
86-
marker=list(color='pink', size=10))
87-
fig
88-
```
8975
###Reference
9076
See[https://plotly.com/r/reference/#image](https://plotly.com/r/reference/#area) for more information and chart attribute options!

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp