plot_hist_with_fit: Plot histogram with fitted curve

Description Usage Arguments Examples

Description

Plot histogram with fitted curve

Usage

1
2
plot_hist_with_fit(df, minSPE, maxSPE, targetSP, numItemsInStream,
  plotContinuousGaussian, annotateIt, showIt)

Arguments

df

A dataframe that must have fields targetSP and SPE

annotateIt

Add text to the plot indicating fit efficacy, latency, precision, and negative log likelihood

showIt

Show plot, otherwise only return plot object without actually showing it

Examples

1
2
3
4
5
 ## Not run: 
df <-  subset(P2E2pilot,subject=="CB" & target==1 & condition==1)
plot_hist_with_fit(df, -11, 11, df$targetSP, 16, TRUE, TRUE, TRUE)
 
## End(Not run)

alexholcombe/mixRSVP documentation built on June 7, 2019, 3:50 p.m.