ggradar
ggradar copied to clipboard
Error: expecting a one sided formula, a function, or a function name.
I have a data that looks like this with 10 rows
스 | ld | kt | ts | ss | ss1 | ss2 | ss3 |
---|---|---|---|---|---|---|---|
1 | 5 | 1 | 165 | 88 | 54 | 57 | 110 |
2 | 5 | 2 | 167 | 91 | 65 | 58 | 110 |
3 | 6 | 1 | 183 | 107 | 50 | 69 | 110 |
if I do following
data%>%filter(kt==1)%>%rename(group=스) %>% mutate_at(vars(-group),scales::rescale())
I get an error
Error: expecting a one sided formula, a function, or a function name.
If I don't do "scales::rescale()" I get an error saying
Error in check_dot_cols(.vars, .cols) : object 'rescale' not found
I've tried
data%>%filter(kt==1)%>%rename(group=스) %>% mutate_each(funs(rescale),-group)
and I get
Error in is_character(x) : object 'group' not found
can you help?
when I tried the following all the values are 0.5
data_M=data%>%filter(kt==1)%>%rename(group=스) %>% mutate_at(vars(-group),scales::rescale)
one other question I have is how do I use non english font? I've tried following and it did not display the text correctly.
ggradar(data_M)+theme(text = element_text(size=8,family = "YDIYGO320"))