r - Any way to label points in pair plots? -


I have set up a small data, which I am planning to plots with a pair. I have some enough data points that I want to add text labels to each point. Is there any way to do this? I have seen some examples of color coding, but in my dataframe, I have a lot of text labels from one column. For the example given below I have an RR, position. I will tell about C, and Prep and thank you the numbers labeled with Hurricane!

  example & lt; - Structure (list (Storm = structure (C (1 L, 10 L, 12 L, 13 L, 15 L, 16 L, 2 L, 3 L, 4 L, 5 L, 6 L, 7 L, 8 L, 9 L), .Label = C ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10" "11 "," 12 "," 13 "," 14 "," 15 "," 16 "), class =" factor ") status. cm = c (-50.1260416666667, -11.5458333333333, -11.4005208333333, -13.303125, -8.91302083333333 , -8.9984375, -20.0125, -18.766666666666, -30.4583333333333, -52.8177083333333, -56.9135416666667, -18.5229166666667, -19.94375, -11.5765625), prevalence = C (27.7, 11, 17.8, 60, 48.6, 62.6, 48.5, 38.4, 40.6 , 16.6, 45.2, 21.8, 39.8, 68.4), RR = c (6.2182629900722, 19.5252223545455, 6.50223807303371, 94.2317387291667, 85.9112139917695, 110.894968051118, 56.2344034298969, 29.555 527546224, 1.74602332820197, 0, 11.3076659103982, 28.3 121063302752, 50.5574166212312, 63.6394516524123)), .Names = C ( "Storm", "Position CM", "Presip", "RR"), class = "Detakfrem" Panktiknam = C (107 L, 108 L , 110 L, 111 L, 113 L, 114 L, 115 L, 116 L, 117 L, 118 L, 119 L, 120 L, 121 L, 122 L) Pairs (e.g. [, C ("Status. CM "," RR "," Preep ")])    

It added ( ) discusses labeling points using '.

this is the example that they do: Add

  (matrix (rnorm) (15), ncol = 3), pp = 21, bg = "gray", cx = 4, panel = function (x, y, ...) {points (x, y, ...); for your example:  
  pairs (e.g. [, C ("condition.c," "rr", "prep")], pp = 21, bg = "gray", cx = 4, panel = function (x, y , ...) {points (x , Y, ...); text (x, y, example [, "storm"])})    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -