Encountered this error when plotting with geomLine:
Exception in thread "main" Script:
library(ggplot2)
library(dplyr)
library(readr)
library(scales)
library(forcats)
data01 = read_tsv("/tmp/.txt9217350101246720089.tmp")
set.seed(2009)
gg = ggplot(mapping=aes(x=`x`,y=`y`,color=`Function`), data=data01) +
geom_line(stat='identity', position=position_identity(), na.rm=FALSE, inherit.aes=TRUE, size=1.0) +
ggtitle("Derivatives of y=(x^(x))")
ggsave(filename="/home/breandan/IdeaProjects/kotlingrad/src/main/resources/plot.png", plot=gg)
Attaching package: ‘dplyr’
The following objects are masked from ‘package:stats’:
filter, lag
The following objects are masked from ‘package:base’:
intersect, setdiff, setequal, union
Attaching package: ‘scales’
The following object is masked from ‘package:readr’:
col_factor
Parsed with column specification:
cols(
x = col_double(),
y = col_double(),
Function = col_character()
)
Saving 7 x 7 in image
Error in if (score > best$score && (!only.loose || (lmin <= dmin && lmax >= :
missing value where TRUE/FALSE needed
Calls: ggsave ... f -> <Anonymous> -> f -> <Anonymous> -> <Anonymous>
Execution halted
at kravis.render.LocalR.render$kravis(LocalR.kt:23)
at kravis.GGPlot.save(GGPlot2.kt:164)
at kravis.GGPlot.save$default(GGPlot2.kt:162)
at edu.umontreal.kotlingrad.samples.TestPlotKt.main(TestPlot.kt:46)
Encountered this error when plotting with
geomLine
:Code follows: