13
यह वही मैं आरएक माध्यमिक y अक्ष बनाएं लाइनों का ग्राफ़ बनाने के लिए ggvis आर
mtcars %>% ggvis(x = ~disp) %>%
layer_lines(y = ~wt, stroke := "red") %>%
layer_lines(y = ~mpg) %>%
add_axis("y", orient = "left", title = "Weight (lb/1000)") %>%
add_axis("y", orient = "right", title= "Miles/(US) gallon") %>%
add_axis("x", title = "Displacement (cu.in.)")
में ggvis पैकेज के साथ अब तक किया है साथ मैं चला Y अक्ष wt पैमाने डेटा का प्रतिनिधित्व करने के लिए नहीं मिल सकता है।
यह आउटपुट: