create_plot: create network plot

Description Usage Arguments Details Value See Also Examples

View source: R/create_plot.R

Description

creates a ggpraph object using the tidied commit data

Usage

1
create_plot(data, add_labels = "none")

Arguments

data

tibble, tidied commit data from get_commit

add_labels

character, add labels to graph nodes, Default: 'none'

Details

add_labels can be c('both','repo','user','none')

Value

ggraph plot

See Also

as_tbl_graph.data.frame,centrality

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
gh_data_2018 <- gh_data%>%
dplyr::filter(format(date,'%Y')=='2018')%>%
dplyr::mutate(freq_var = format(date,'%Y'))%>%
create_graph_data()

gh_data_2018%>%create_plot()

gh_data_2018%>%create_plot(add_labels='user')

gh_data_2018%>%create_plot(add_labels='repo')

gh_data_2018%>%create_plot(add_labels='both')


## End(Not run)

yonicd/ghnet documentation built on May 7, 2019, 9:35 a.m.