---
title: "ECDF_Single_Target"
author: "IOHprofiler"
date: "7/5/2019"
output: pdf_document:
  fig_caption: yes
graphics: yes
---

```{r, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
dsl_sub <- subset(dsl, DIM == dim && funcId == fid && algId %in% algs)
name <- get_data_id(dsl_sub)
fvs <- get_funvals(dsl_sub)
tryCatch(
  {
  ftarget <- as.numeric(REG$RTECDF.Single.Target[name])
  if (is.null(ftarget) || is.na(ftarget)) ftarget <- median(fvs)
},
error = function(e) {
    ftarget <- median(fvs)
  }
)
p <-   Plot.RT.ECDF_Per_Target(dsl_sub, ftarget, scale.xlog = input$RTECDF.Single.Logx)
save_plotly(p, paste0('ECDF_single_target_F', fid, '-', dim, 'D.pdf'), 'pdf', width = 1000, height = 500)
```
## ECDF plot of F`r paste(fid)` on `r paste(dim)`D at target `r paste(ftarget)`

```{r {{name_figure}}, results='asis', fig.align='center', fig.cap="TEsting", fig.width=500, fig.height=300, fig.pos='!hbt'}
include_graphics(paste0('ECDF_single_target_F', fid, '-', dim, 'D.pdf'))
```
