Cannot stack two ggplotly plot using Rmd file in Rshiny report

Hello,

I built an RSiny app which can download a html report using downloadHandler. However, in Rmd file, I can not stack two ggplotly side by side although I tried many options. You can see my code in Rmd file below. After this code, I still get two ggplotly plow vertical. It does not work. Could you please help? Thank you

Rmd file:

''''# Output
{r echo=FALSE, out.width="49%", fig.width=3, fig.height=3,fig.show='hold',fig.align='center'}

ggplotly(qplot( params$sdr_v$Voltage_sensor, params$sdr_v$sdr, xlab= "Voltage sensors", ylab = "SDR(mV/day)")+
geom_point(aes(x = params$sdr_v$Voltage_sensor, y= params$sdr_v$sdr))+
theme(axis.text.x = element_text(angle = 45, vjust = 1.0, hjust = 1.0))+
theme(legend.position = "none",axis.text.x=element_blank()))

ggplotly(qplot( params$sdr_s$Voltage_sensor, params$sdr_s$sdr_soc, xlab= "Voltage sensors", ylab = "SDR (%SOC/day)")+
geom_point(aes(x = params$sdr_s$Voltage_sensor, y= params$sdr_s$sdr_soc, colour=params$sdr_s$sdr_soc>0.016))+
scale_colour_manual(values = c("black", "red"))+
theme(axis.text.x = element_text(angle = 45, vjust = 1.0, hjust = 1.0))+
theme(legend.position = "none",axis.text.x=element_blank()))
''''

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.