ggplot2 でプロットを作成するときに問題が発生しました
> setwd("c:/tesis/emisiones")
e<-read.csv("fh3pco1.csv",header=T)
attach(e)
names(e)
1「VehCat」「Component」「TrafficSit」「Subsegment」「SizeClasse」「V」「EFA」
[8]「norma」「cat」「cat1」
library(ggplot2)
length(e)
1 10
vpge0 <- function(x) {(281* x^-0.63)}
プロットにエラーなし
ggplot(e, aes(x=V,y=EFA, colour=norma)) + geom_point(size=4)
プロットのエラー
ggplot(e, aes(x=V,y=EFA, colour=norma)) +
geom_point(size=4)+
stat_function(data = data.frame(x = 1:100, FE = factor(1)),fun = vpge0, size=1)