16.6 Combining Controls
이번에는 Picker Control과 Slider Control 두 개를 함께 사용해 보는 예제입니다. Picker Control 로 대상 변수를 선택할 수 있게 하였고, Slider Control 로 Histogram 의 Bin size 를 조절할 수 있도록 해보았습니다.
## Combining Controls
manipulate(
hist(Cars93[, continuous_variable],
breaks = bin_slider,
freq = FALSE, main = continuous_variable),
continuous_variable = picker("MPG.highway", "Weight", "Price"),
bin_slider = slider(5,50, step=5, initial = 10)
)
## Error in manipulate(hist(Cars93[, continuous_variable], breaks = bin_slider, : The manipulate package must be run from within RStudio
참고자료
- https://rfriend.tistory.com/166?category=605866
- https://rfriend.tistory.com/167?category=605866
- http://www.bloter.net/archives/270142
- https://visualize.tistory.com/35
- https://rfriend.tistory.com/168?category=605866
- https://rfriend.tistory.com/169
- https://rfriend.tistory.com/170
- https://rfriend.tistory.com/83
- https://rfriend.tistory.com/71
- https://rfriend.tistory.com/95?category=605866
- https://rfriend.tistory.com/97?category=605866