I am trying to use images in radiobuttons inside a fluidRow inside a dashboardBody but I am getting weird skewing of the buttons and images.
The problem seems to be with the row wrapping as the buttons look normal if they can fit in the first row. However, I want the size of the images to be at least the one specified in the code below and there is not enough space for them to all fit on the first row.
Has anyone had a similar problem and how did you solve it?
Here is the code:
dashboardBody(
tabItems(
tabItem(tabName = "prices",
fluidRow(
column(12, radioButtons(inputId = "rb", label = "Select distribution", inline = TRUE,
choiceNames = list(
img(src = "Normal Distribution.png", width = 100, height = 50),
img(src = "Right-Skewed Distribution.png", width = 100, height = 50),
img(src = "Plateau Distribution.png", width = 100, height = 50),
img(src = "Double-Peaked Distribution.png", width = 100, height = 50),
img(src = "Edge Peak Distribution.png", width = 100, height = 50),
img(src = "Comb Distribution.png", width = 100, height = 50)
),
choiceValues = list(
"Normal",
"Right skewed",
"Plateau",
"Double peaked",
"Edge peak",
"Comb"
)
)
)
)
)
)
)