What is Composite Cross Populations (CCPs)?

I would like to introduce a relatively unfamiliar plant breeding method compared to conventional breeding: Composite Cross Populations (CCPs). After much thought on how to translate CCPs, I decided on ‘Broad Environmental Adaptability Breeding’. Rather than translating it literally, I chose a dynamic, conceptual translation because a literal translation would fail to capture its original … Read more

[Agronomy article] Long and Short-Day Plants: The Significance of Photoperiodicity

Photoperiodicity refers to the response of plants to the relative lengths of day and night, which regulates their growth and flowering. It is an important factor in agriculture as it allows growers to optimize crop yields and quality by understanding and manipulating the photoperiod requirements of different plant species. In terms of photoperiodicity, plants can … Read more

[Agronomy Article] The Story of Norman Borlaug and the Green Revolution (How Did 20th-Century Wheat Yields Increase?)

How Did 20th-Century Wheat Yields Increase? This story dates back to 1935. At that time, Japanese wheat breeder Gonjiro Inazuka crossed a Japanese semi-dwarf wild variety with two American wheat varieties to develop a new wheat cultivar named Norin 10 (小麦農林10号). The word ‘Norin’ in Japanese reportedly means ‘Agriculture and Forestry.’ Semi-dwarf: In plant breeding, … Read more

[Data article] Why use segmented regression instead of ANOVA for yield across years?

Segmented regression, also known as piecewise regression, is used when the relationship between an independent variable and a dependent variable changes across different ranges of the data. Instead of fitting a single straight line to the entire dataset, this method divides the range of the independent variable into intervals and fits a separate linear slope … Read more

[Data article] Does potato tuber size follow a Gamma Distribution better than a Normal Distribution?

In my previous post, I introduced the Gamma Distribution, covering why to use it and how to calculate its parameters and their effects. I also introduced a new R package called gammacurve() for easily creating a gamma curve. ■ What is the Gamma Distribution? Shape and Scale Parameters, and the Probability Density Function (PDF) In … Read more

What is the Gamma Distribution? Shape and Scale Parameters, and the Probability Density Function (PDF)

The Gamma distribution is a flexible family of continuous probability distributions defined only for non-negative values (x>0). It’s commonly used to model quantities that represent time, size, or waiting periods—anything that can’t go below zero and often shows right-skewed behavior (a long tail toward larger values). In essence, the Gamma distribution describes how likely different … Read more

[Data article] Is the Weibull model better than the quadratic plateau models for cumulative data?

Codes to create two figures above; https://github.com/agronomy4future/r_code/blob/main/weibullfit.ipynb In my previous posts, I introduced the linear and quadratic plateau models to identify the plateau point where the data stabilizes. ■ How to analyze linear plateau model in R Studio?■ How to analyze quadratic plateau model in R Studio? In this post, I’ll introduce the Weibull model … Read more

How to analyze linear plateau model in R Studio?

When we talk about regression, it’s usually about simple linear regression model. This is about the relationship between two variables. FYI□ Simple linear regression (1/5)- correlation and covariance□ Simple linear regression (2/5)- slope and intercept of linear regression model Linear plateau model is similar with simple linear model, but linear plateau model is a segmented … Read more

phenoshot() R Package: AI-Based Plant Image Analysis for Morphological Trait Measurement

AI-based plant image analysis for morphological trait measurement phenoshot is an R package that measures plant morphological traits from photographs. It combines AI background removal (Photoroom API) with OpenCV-based object detection to report area, perimeter, length, and width in real-world units (cm), and writes an annotated image so every measured object can be visually verified. … Read more

Burn down herbicide

A burndown herbicide is a non-selective or broad-spectrum weed killer used to clear out existing weeds and cover crops before a new crop is planted. Burndown applications are a staple of no-till and conservation tillage farming. While they effectively kill the green vegetation currently growing, they typically do not prevent new weeds from popping up … Read more

sangchu: A Python Package for Green Leaf Area Detection in Greenhouse Pot Experiments

In the case of greenhouse pot experiments, image analysis to detect green leaf area is much simpler because of the well-controlled conditions. However, it is still mandatory to adjust settings to remove noise and isolate only the green leaves. This simple Python code provides an easy way to detect green leaf area. 1. Open Visual … Read more

Database Flow Map

Recently, I set up my database workflow using a Virtual Private Server (VPS) and developed R code to easily access and analyze this database. I’ll introduce them one by one. 1) Data in local PC to MySQL Server I want to upload my data in my PC to a MySQL server hosted on a Virtual … Read more

Firth’s Logistic Regression: Solving the Problem of Separation

In my previous post, I explained What logistic regression is and also explained odds, odds ratio and model equation. Today, I’ll introduce Firth’s Logistic Regression. Common logistic regression is mostly used when the sample size is sufficiently large, and the outcome variable (0 and 1) is well-balanced. Also, it is used when there is no … Read more

phenokio() R Package: Grain Size Analysis – Length, Width, and Area Metrics

When analyzing grain size, we’ve used high-throughput image scanning machines. However, if we can detect grains using R code, estimating grain size becomes possible. In my previous R function, colorcapture(), we were able to detect fruit size and estimate its surface area in 2D. Recently, I developed a new R function called phenokio() specifically designed … Read more

[Agronomy article] Nitrogen Cycle in Soil

1) Nitrogen Immobilization Nitrogen immobilization is the process by which soil microorganisms take up inorganic nitrogen (mainly NH₄⁺ and NO₃⁻) from the soil solution and convert it into organic forms inside their own cells. In other words, the N is temporarily “locked up” in microbial cells and is not available for plants. Microbes need nitrogen … Read more

Literature Mining for Meta-Analysis Using the scopusmining Package

Meta-analysis is a quantitative method that synthesizes results from multiple independent studies to identify overall patterns, effect sizes, and sources of variability for specific treatments or research questions. It is particularly powerful for summarizing existing evidence and placing new findings within the context of current scientific trends through transparent and reproducible statistical integration of prior … Read more

Converting Rows to Columns in R: A Guide to Transposing Data (feat. pivot_wider and pivot_longer)

When data is arranged, it can be structured either vertically (row-based) or horizontally (column-based). The choice depends on your preference for organizing data. However, when running statistics, data should be arranged row-based, as variables need to be in the same column. On the other hand, when calculating per variable, it is much easier to organize … Read more

[R package] Log Response Ratio and Effect Size Calculation (feat. lrr)

When conducting a meta-analysis, results from multiple studies must be synthesized despite differences in measurement scales, experimental designs, and reported units. To enable meaningful comparisons across studies, effect sizes are commonly used. One of the most widely applied effect size metrics in ecological and agricultural research is the Log Response Ratio (LRR). The Log Response … Read more

Confidence interval (CI) formula for a two-sample t-test

When performing a t-test, a confidence interval can be obtained. Below, I describe how to calculate the confidence interval manually, step by step. 1) Difference in means 2) Pooled variance 3) Standard error 4) Degrees of freedom 5) Confidence interval and let’s calculate the confidence interval We aim to develop open-source code for agronomy (kimjk@agronomy4future.com) … Read more

Understanding Bayes’ Theorem Step by Step

Recently, I’ve been focusing on Bayesian statistics. To organize the concepts for myself as well, I’m going to explain Bayes’ theorem as simply as possible. Let’s import a dataset from Kaggle. https://www.kaggle.com/datasets/cameronseamons/electronic-sales-sep2023-sep2024 This dataset contains information used to analyze customer purchasing behavior at an electronics store. You can download it from Kaggle after creating an … Read more