دنبال کننده ها

۱۳۹۶ شهریور ۱۱, شنبه

Graph in R for visualizing a vector with entries 0,1 and 2

[ad_1]



I have never used R so this question might be simple for someone,



however I was checking the manual and documentation and still could not find a right graph so I am asking you guys.



What I have is a file containing information about another text file. The information is simple, for each position in the text file, in my result file is either a 0,1 or 2.



So what I want as a visualisation is basically just a rectangle, going from position 1 to the length of the text, and colored with 3 colors - either if it was a 0,1 or 2 in my result file.



Does someone know which visualisation graph should I use?




[ad_2]

لینک منبع