[問題] RShiny Ui Server對應
[問題類型]:
程式諮詢(我想用R 做某件事情,但是我不知道要怎麼用R 寫出來)
[軟體熟悉度]:
使用者(已經有用R 做過不少作品)
[問題敘述]:
最近在使用RShiny做圖表
想問有經驗的大大如何讓這兩個Ui 跟 Server連結起來
我是想做grouped bar plot 但一直無法將server的y
[程式範例]:
程式碼可貼於以下網站:
UI:
sidebarPanel(
selectInput("var", "Select the variable from this dataset", choices =
c("English score" = mod_data$eperpospts, "math score" = mod_data$mperpospts)),
s我定義一個input名叫var 然後我想要讓我的English score跟 math score是可以被選擇的
Server:
ggplot(mod_data, aes(y=eperpospts, x = race, fill = highneeds)) +
stat_summary(fun.y = mean, geom = "bar", position = "dodge")
然後在y的部分一直無法跟Ui連結 想不到辦法 不知道大大們有什麼建議
非常感謝
如果能幫忙的大大 我以200P作為答謝
[關鍵字]:
RShiny
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 65.96.232.71
※ 文章網址: https://www.ptt.cc/bbs/R_Language/M.1542058643.A.41B.html
→
11/13 07:43,
6年前
, 1F
11/13 07:43, 1F
→
11/13 07:43,
6年前
, 2F
11/13 07:43, 2F
→
11/13 07:45,
6年前
, 3F
11/13 07:45, 3F
推
11/13 08:06,
6年前
, 4F
11/13 08:06, 4F
→
11/13 08:08,
6年前
, 5F
11/13 08:08, 5F
→
11/13 08:08,
6年前
, 6F
11/13 08:08, 6F
→
11/13 08:09,
6年前
, 7F
11/13 08:09, 7F
→
11/13 08:10,
6年前
, 8F
11/13 08:10, 8F
R_Language 近期熱門文章
PTT數位生活區 即時熱門文章