Multiple columns within one panel?

1,605 views
Skip to first unread message

Marise

unread,
Nov 14, 2014, 1:17:59 PM11/14/14
to shiny-...@googlegroups.com
Hello,

I'm trying to build a prediction generator. There are a lot of variables in the prediction model so I need four columns of "inputs". I hope all the inputs reside in one single panel. The ideal layout would be a large upper input panel and a small lower output panel. Don't know if it's possible ...

Any suggestion is appreciated!

Marise

Joe Cheng

unread,
Nov 14, 2014, 2:16:59 PM11/14/14
to Marise, shiny-...@googlegroups.com
Yep, quite possible. See the layout guide:

especially the sections "Grid Layout" and "Grid Layouts in Depth".

--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/b32857cb-fc30-401c-867f-4165dfd99138%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Marise

unread,
Nov 14, 2014, 2:44:15 PM11/14/14
to shiny-...@googlegroups.com
Thank you very much, Joe.

I think I can get the layout using fluidPage(fluidRow(column(...)), ...). But by doing this, I cannot distinguish inputs from outputs. I mean, I really want all the inputs within a single panel with a slightly inset border and grey background. 

There seems wellpanel() can be used within column(), but this would generate multiple panels for the inputs...

Thanks a lot!

Joe Cheng

unread,
Nov 14, 2014, 3:12:28 PM11/14/14
to Marise, shiny-...@googlegroups.com

Try putting the top fluidRow inside a wellPanel.

--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.

Marise

unread,
Nov 14, 2014, 3:23:50 PM11/14/14
to shiny-...@googlegroups.com, hm....@gmail.com
Yes, it works! Thank you so much!!
Reply all
Reply to author
Forward
0 new messages