Add multiple sub plots within same panel.

0 votes
How to add multiple sub plots within same panel using plotly? Show multiple charts in one grid.
Aug 23 in Data Analytics by karthi
18 views

1 answer to this question.

0 votes

Hi, Karthi

The subplot() function in plotly provides a flexible interface for merging plotly objects into a single object.

1. Create plotly images and store them in variables.

2. provide plotly objects to subplot like below.

Ex: 

p1 <- plot_ly(economics, x = ~date, y = ~unemploy) %>% add_lines(name = ~"unemploy")
p2 <- plot_ly(economics, x = ~date, y = ~uempmed) %>% add_lines(name = ~"uempmed")
p <- subplot(p1, p2)

The example is explained in detail here, https://plot.ly/r/subplots/

answered Aug 26 by anonymous
• 27,960 points

Related Questions In Data Analytics

0 votes
1 answer

Plotting multiple graphs on the same page in R

If you want to plot 4 graphs ...READ MORE

answered Mar 27, 2018 in Data Analytics by Bharani
• 4,550 points
56 views
0 votes
1 answer

Loading multiple packages at the same time

You can use the p_load() function from ...READ MORE

answered Jun 4, 2018 in Data Analytics by Bharani
• 4,550 points
20 views
0 votes
1 answer

Multiple plots onto a single page in R

Plotting multiple plots onto a single page ...READ MORE

answered Jul 17, 2018 in Data Analytics by darklord
• 6,170 points
40 views
0 votes
1 answer

R Programming: Running multiple sub-strings

Instead of using the substr() try with ...READ MORE

answered Feb 6 in Data Analytics by Sophie may
• 9,850 points
25 views
0 votes
0 answers

R chart using plotly

How to create a time series chart ...READ MORE

Jul 26 in Data Analytics by kriti
18 views
0 votes
0 answers

How to get interactive plots in R?

How to get interactive plots in R? ...READ MORE

Jul 26 in Data Analytics by lavanya
18 views
0 votes
0 answers

Waterfall chart using plotly in R

Hi, can someone help to create a ...READ MORE

Jul 26 in Data Analytics by sandhya
46 views
0 votes
0 answers

Sunburst charts using plotly

How to Sunburst charts using plotly in ...READ MORE

Jul 26 in Data Analytics by ratna
90 views
0 votes
1 answer

How to add create a box plot with categorical columns?

One way is to convert to factor ...READ MORE

answered Jul 4 in Data Analytics by anonymous
• 27,960 points
44 views
0 votes
1 answer

Change the order of multiple legends in ggplot

Hi Radha, You can change the order of ...READ MORE

answered Jul 24 in Data Analytics by Cherukuri
• 27,960 points
157 views