plot - R error in xy.coords -
I am using R package "sdcMicro" and I ? SdcMicro
, but conspiracy method can not be used.
Work example:
install.packages ("sdcMicro", depend = TRUE) Library (SDCMCRO) data (free 1) F & LT; Inductive-indivRisk (f) Class (Ind) [1] "Indivir" Plot (Ind)
I Xy. Error in coords (x, y, xlabel, ylabel, log): 'x' is a list, but the component does not have 'x' and 'y':
< / Pre>
If I try the
methods (class = indivRisk)
I get:[1] print.indivRisk
, classes of "indivirus" should be
plot.indivRisk print.indivRisk
In the analysis of the plot method dataThe pain.
I do not understand why I do not have this method. Can someone help me or guide me for a lecture?
I am using RGE (64-bit) on Windows 7.
You are right; Ind
:
Given the structure of str (IND), there is no print.indivRisk
method. ## List of ## $ rk: num [1: 4000] 0.00121 0.00421 0.00421 0.00421 0.00169 ... ## $ Method: chr "approx" ## $ Qualified: number1 ## $ fk: int [1: 4000]] 8 3 3 3 6 6 4 7 5 3 ... ## $ Knames: chr [1: 3] NA NA NA ## - attr (*, "class") = chr "indivRisk" < / Code>
It is possible that you only want a histogram of the rk
element.
hist (ind $ rk)
or
library (ggplot2) ggplot (data.frame (rk = Ind $ RK), AES (RK)) + geom_histogram ()
Comments
Post a Comment