Micrometeorology Functions

mf_bib | Create a bib file for R packages, including the citations of... |

mf_convertc | Convert air concentration between ppm and micromol m-3 |

mf_convertRH | Convert the unit of air humidity according to Sonntag 1990. a... |

mf_daynight | Define daytime or nighttime |

mf_dfplot | Plot a dataframe, multiple ys against one x |

mf_dfplot2 | Plot a dataframe, one y against multiple xs |

mf_errorbar | add error bars to a scatterplot. |

mf_fillna | Fill a time series with NAs. in: a dataframe and a timestamp... |

mf_findpeaks | Find peaks of a curve... |

mf_findpeaks2 | Find peaks of a curve... |

mf_hist | Plot a user-customized hist |

mf_hmplot | Plot a Hovmoeller or fingerprint plot |

mf_hourrose | Hour rose plot |

mf_imagescale | Create a legend |

mf_kurtosis | Kurtosis measures whether the data are peaked or flat... |

mf_list2ascii | Save a list into an ASCII file. in: a list. out: a file. |

mf_lm | plot a linear regression figure and return a list of... |

mf_lmdf | calculate linear regression between every two columns in a... |

mf_names | Enhancement of names() |

mf_optimdmodel | optim function for the dmodel in chamber flux calculation.... |

mf_outlier | check outliers. in: a vector. out: a plot and a vector of... |

mf_pairs | plot pair-wise correlations. in: a dataframe. out: a figure. |

mf_pairs2 | plot pair-wise correlations with p value. in: a dataframe.... |

mf_pairslm | plot pair-wise correlations with linear regression. in: a... |

mf_pickquantile | A filter to pick out data within a range by quantile of ref.... |

mf_planarfit | calculate the planafit coefficients from 3D wind measurement.... |

mf_plotblank | plot a blank figure |

mf_plotcolors | A reminder for colors |

mf_plotlty | lty |

mf_plotpch | pch numbers |

mf_plottype | type |

mf_prefix0 | fill 0 before a string. in and out: a vector with length 1.... |

mf_rainbow | # give each x a color by groups. |

mf_readdir | batch read several files. in: a path. out: a list containing... |

mf_satpress | calculation of saturation vapour pressure (Pa) at T(degree... |

mf_se | standard error |

mf_sharedata | A template to create a folder with data files to share |

mf_skewness | normality test. if either skewness/se_skew is outside -1.96 -... |

mf_smooth | smooth a series with a giving width. in and out: a vector. |

mf_strptime | A simplied version of strptime. only for '%Y-%m-%d %H:%M:%S' |

mf_sunriset | calculate sunrise and sunset time in a friendly way. in: a... |

mf_tapply | a friendly version of tapply for dataframes. in and out: same... |

mf_taylor | mf_taylor: plot a taylor diagram to compare reference (x) and... |

mf_timefiller | Fill time series with NA |

mf_timestampfull | convert time stamps into a full format, i.e. convert... |

mf_vtapply | a friendly version of tapply |

mf_windd | calculate resultant wind direction from u and v. in: a vector... |

mf_winddclear | convert wind direction out of the range [0, 360) into the... |

mf_windmean | calculate resultant mean wind spead and resultant mean wind... |

mf_windmean2 | not recommended! alculate resultant mean wind speed and... |

mf_windrose | Draw my windrose |

mf_windu | calculate u component of wind. in: a vector of wind speed and... |

mf_windv | calculate v component of wind. in: a vector of wind speed and... |

mf_write | save csv file with asking if the file already exists. |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.