Re: [R] create a network for a small text df

2019-02-01 Thread Jeff Newmiller
;data.frame", row.names = c(NA, >-7L)) > >#And I ran this > >library(igraph) >net2=graph(c("account","block","block","solve","solve","problem")) >plot(net2) > ># I do not get 7 plots, only one? See attached

Re: [R] create a network for a small text df

2019-02-01 Thread Elahe chalabi via R-help
his library(igraph) net2=graph(c("account","block","block","solve","solve","problem")) plot(net2) # I do not get 7 plots, only one? See attached. WHP From: R-help On Behalf Of Elahe chalabi via R-help Sent: Wednesday, January 30, 2019

[R] create a network for a small text df

2019-01-30 Thread Elahe chalabi via R-help
Hi all, I have a small dataframe and I would like to show in a network plot how words are related to the word "problem" with arrows (keeping the order of the words in sentences). Here's the df: dput(df) structure(list(text = structure(c(1L, 7L, 3L, 4L, 5L, 6L, 2L), .Label = c(