'Boxplot for one element instead of all of them
install.packages("HSAUR")
data("Forbes2000", package="HSAUR")
boxplot((log(Forbes2000$marketvalue)~Forbes2000$country))
I get the boxplot for each and every country, is there a way for me to get it for only one desired country? For example the united states (which is indexed 1 in forbes2000$country) .Here's how the code runs. . I want the highlighted part. I tried doing this :
boxplot((log(Forbes2000$marketvalue[1])~Forbes2000$country[1]))
but it's incorrect.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
