Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method to plot top vertices barplot using results of computeGraphMetric #67

Open
grigory93 opened this issue Nov 28, 2016 · 0 comments
Open
Assignees
Milestone

Comments

@grigory93
Copy link
Contributor

prototype code is:

createTopMetricPlot <- function(data, metric, xlab='Officer', ylab='Degree', title) {
  p = ggplot(data) +
    geom_bar(aes_string("key", metric, fill="key"), stat='identity') +
    labs(x=xlab,y=ylab,title=title) +
    ggthemes::theme_tufte() + 
    theme(legend.position='none', 
          axis.text.x = element_text(size=16, angle = 315, vjust = 1), 
          plot.title = element_text(size=20),
          axis.ticks = element_blank())
  
  return(p)
  }
@grigory93 grigory93 added this to the release 0.6.0 milestone Nov 28, 2016
@grigory93 grigory93 self-assigned this Nov 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant