r***@gmail.com
2016-11-12 10:06:46 UTC
Hi
I did a graph some months ago, but I cannot redo it. I am just struggling.
I tried to put the same syntax, but it does not work. It says that An inline graph specification was expected but not found.
Anyone can help?
I am desperated
In my graph, I have 15 variables and I want them in thw x axis; in the y axis, I want their means and I want them classified in 2 groups. I don't know why now the 2 groups come to the x axis and have lines going from left to right.
Please,.. help
* Generador de gráficos.
GGRAPH
/GRAPHDATASET NAME="graphdataset" VARIABLES=MEAN(Recipient_listing_eGFR) MEAN(Recipient_pretx_eGFR) MEAN(Post_eGFR_1) MEAN(Post_eGFR_2) MEAN(Post_eGFR_3) MEAN(Post_eGFR_4) MEAN(Post_eGFR_5) MEAN(Post_eGFR_6) MEAN(Post_eGFR_7) MEAN(Post_eGFR_8)
MEAN(Post_eGFR_9) MEAN(Post_eGFR_10) MEAN(Post_eGFR_11) MEAN(Post_eGFR_12) MEAN(Post_eGFR_13) MEAN(Post_eGFR_14) Low_CNI_14d MISSING=LISTWISE REPORTMISSING=NO
TRANSFORM=VARSTOCASES(SUMMARY="#SUMMARY" INDEX="#INDEX")
/GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
SOURCE: s=userSource(id("graphdataset"))
DATA: SUMMARY=col(source(s), name("#SUMMARY"))
DATA: INDEX=col(source(s), name("#INDEX"), unit.category())
DATA: Low_CNI_14d=col(source(s), name("Low_CNI_14d"), unit.category())
GUIDE: axis(dim(2), label("Media"))
GUIDE: legend(aesthetic(aesthetic.color.interior), label("Low_CNI_14d"))
SCALE: cat(dim(1), include("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11"
, "12", "13", "14", "15"))
SCALE: linear(dim(2), include(0))
SCALE: cat(aesthetic(aesthetic.color.interior), include("0", "1"))
ELEMENT: line(position(INDEX*SUMMARY), color.interior(Low_CNI_14d), missing.wings())
END GPL.
I did a graph some months ago, but I cannot redo it. I am just struggling.
I tried to put the same syntax, but it does not work. It says that An inline graph specification was expected but not found.
Anyone can help?
I am desperated
In my graph, I have 15 variables and I want them in thw x axis; in the y axis, I want their means and I want them classified in 2 groups. I don't know why now the 2 groups come to the x axis and have lines going from left to right.
Please,.. help
* Generador de gráficos.
GGRAPH
/GRAPHDATASET NAME="graphdataset" VARIABLES=MEAN(Recipient_listing_eGFR) MEAN(Recipient_pretx_eGFR) MEAN(Post_eGFR_1) MEAN(Post_eGFR_2) MEAN(Post_eGFR_3) MEAN(Post_eGFR_4) MEAN(Post_eGFR_5) MEAN(Post_eGFR_6) MEAN(Post_eGFR_7) MEAN(Post_eGFR_8)
MEAN(Post_eGFR_9) MEAN(Post_eGFR_10) MEAN(Post_eGFR_11) MEAN(Post_eGFR_12) MEAN(Post_eGFR_13) MEAN(Post_eGFR_14) Low_CNI_14d MISSING=LISTWISE REPORTMISSING=NO
TRANSFORM=VARSTOCASES(SUMMARY="#SUMMARY" INDEX="#INDEX")
/GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
SOURCE: s=userSource(id("graphdataset"))
DATA: SUMMARY=col(source(s), name("#SUMMARY"))
DATA: INDEX=col(source(s), name("#INDEX"), unit.category())
DATA: Low_CNI_14d=col(source(s), name("Low_CNI_14d"), unit.category())
GUIDE: axis(dim(2), label("Media"))
GUIDE: legend(aesthetic(aesthetic.color.interior), label("Low_CNI_14d"))
SCALE: cat(dim(1), include("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11"
, "12", "13", "14", "15"))
SCALE: linear(dim(2), include(0))
SCALE: cat(aesthetic(aesthetic.color.interior), include("0", "1"))
ELEMENT: line(position(INDEX*SUMMARY), color.interior(Low_CNI_14d), missing.wings())
END GPL.