Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
wrap long labels
Post Body

hey. im trying to wrap very long labels in my plot. however i get this error: cannot coerce type 'closure' to vector of type 'character'.

anyone thinks who can help me with this?

ggplot() 
  geom_point(data=activityy, aes(x=fct_reorder(Category,Pulse_Rate), y=Pulse_Rate, color=Category), size=5, alpha=.3) 
  geom_point(data=meanacct, aes(x=Category, y=meanAct, color=Category), size=8, shape='diamond') 
  coord_flip() 
  labs(title='Pulse Rate in Comparison to Activity',x='', y='Pulse Rate (beats/minute)' ) 
  scale_color_manual(
    values=c('#e26d5c', '#ffe1a8', '#c9cba3','#472d30', '#723d46'),
    labels=c( 'Athletes', 'Untrained Subjects', 'Untrained Subjects 
             After 10 Minutes of Exercise', 'After Beer')) 
  theme_bw() 
  scale_x_discrete(labels=c('Athletes', 'Untrained Subjects', 'Untrained Subjects  After 10 Minutes of Exercise', 'After Beer'),
                   label_wrap_gen(width = 25, multi_line = TRUE)) 
  theme(legend. Position="none")

https://preview.redd.it/74wfh8o74wt91.png?width=965&format=png&auto=webp&s=480fdcb1ec160b417b10522eb14fe33d8a975135

Author
Account Strength
50%
Account Age
2 years
Verified Email
Yes
Verified Flair
No
Total Karma
72
Link Karma
39
Comment Karma
33
Profile updated: 1 day ago
Posts updated: 2 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago