[R] barplot
Jim Lemon
jim at bitwrit.com.au
Wed Oct 24 12:17:10 CEST 2012
On 10/24/2012 03:21 AM, Thiho Jules wrote:
> Hi,
>
> I want to make a barplot with the following datasets:
>
> I have a file as following:
>
> name chr position A1 A2 pop1 pop1 pop2 pop2
>
> I have calculated a measure using all the values in columns "pops", the
> values are saved in a vector.
>
> Now I want to make a barplot using the values in this vector as the y axis
> and the values in the column "position" in the x-axis.
>
Hi Thiho,
You can do this with the "barp" function in the plotrix package. See the
"x" argument for placing the bars at arbitrary positions.
Jim
More information about the R-help
mailing list