Files
Demo/demoFZSTAM.R
2019-12-20 11:07:34 +01:00

16 lines
474 B
R

library(ggplot2); library(RODBC)
channel <- odbcConnect("ebv_d29", uid = "RECKLINGK", pwd = "stapler13")
test <- sqlQuery(channel, stringsAsFactors=F,
"SELECT FZSTAM.FIRNR, FZSTAM.FAZFI
FROM FZSTAM
WHERE FZSTAM.FIRNR = 1
LIMIT 1000
")
odbcCloseAll(); rm(channel)
ggplot(test, aes(x=FAZFI)) +
geom_bar(color="blue", fill=rgb(0.1,0.4,0.5,0.7) ) +
scale_fill_hue(c = 40) +
theme_bw()