scale_x_discrete(limits=rev)

Displaying Axis Values as Percentages in R Studio with Simple Code

Let’s create a simple dataset and draw a bar graph with this data The values on the y-axis are in decimal points. I would like to display them as percentages. So, I will insert the code labels=scales::percent inside the scale_y_continuous() function. The complete code is as follows: The values on the y-axis have changed to … Read more

Exporting Individual Graph Images with R Studio and ggsave()

After creating a graph using R, repeatedly copying and pasting it to move it becomes a cumbersome task. Today, I’ll demonstrate how to easily relocate the graph. Let’s generate some data and draw a graph to demonstrate. Running the code like this will display the graph in the Plot window. Then, each time, you’ll need … Read more

Exploring Axis Title and Text Spacing Adjustment in R Studio for Graphs

If you visit FAOSTAT (https://www.fao.org/faostat/en/), you can download high-quality data related to agriculture. Recently, I conducted an analysis of the trends in global and European wheat harvest quantities. As a result, I performed data analysis similar to the following. The complete code for the above graph is as follows: In the above graph, it seems … Read more

네덜란드 범죄경력증명서 (Verklaring Omtrent het Gedrag-VOG) 신청 및 수령하기

특정 국가의 취업 비자나 여러가지 입국 서류를 준비하다보면 필수 서류중 하나가 과거 체류한 국가의 범죄 경력증명서 입니다. 이미 그 나라를 떠난 상태에서 해당 국가의 범죄 경력증명서를 받기는 쉽지 않습니다. 저는 과거 네덜란드에 거주하였는데 이번 다른 국가에서의 취업비자를 준비하던 중 과거 6개월 이상 체류한 국가의 범죄경력증명서 제출이 필수여서 이번에 한국에서 네덜란드 범죄경력증명서를 발급 받았습니다. 제가 발급받았던 … Read more

[데이터 칼럼] 회귀모델의 절편을 0 으로 조정 했을때 결정계수는 어떻게 변할까?

과거에 저는 밀 종자의 면적을 구하기 위해 밀 종자를 이미지 스캔하고, 그 다음에는 각 밀 종자의 면적에 해당하는 무게를 측정하였습니다. 다음 회귀 분석은 밀 종자의 면적과 무게 간의 관계를 보여줍니다. # Data download https://www.kaggle.com/datasets/agronomy4future/wheat-grain-area-vs-weight 위 데이터를 제 Github 에서 R 로 업로드 하겠습니다. 그리고 통계 분석을 해 보겠습니다. 회귀모형 y= 3.3333x – 13.7155 을 Excel … Read more

Creating a Data Frame in R Studio

Today, I will show you how to create a data frame using R Studio. We have several variables that we will combine into a data frame. The ‘nation’ variable consists of five countries: “USA”, “GERMANY”, “NETHERLANDS”, “DENMARK”, and “KOREA”. We also have some survey data on the happiness and economic power of each country. To … Read more

단순선형 회귀분석에서 결정계수 (R², Coefficient of Determination) 를 가장 쉽게 설명해 보자

여기 x 와 y 에 대한 데이터가 있습니다. x 가 변화함에 따라 y 는 어떻게 달라지는지를 알고 싶어 회귀분석을 해 보겠습니다. x y 1 10 30 2 20 40 3 30 50 4 40 80 5 50 90 6 60 100 7 70 120 저는 SAS 를 이용합니다. 먼저 데이터 데이블을 생성합니다. 그리고 단순선형 회귀분석을 … Read more

[스페인 농업일기] 스페인 작물 학회 (FiRCMe) 발표

팜플로나에 있는 University of Navarra 에서 진행된 스페인 작물 학회에서 발표를 하였습니다. 발표 주제는 밀 수확량에 영향을 미치는 고온 스트레스에 관한 내용이었습니다. 고온 스트레스는 밀 수확량에 영향을 미칠때 직접적으로 종자에 영향을 미치는지, 잎에 직접적으로 영향을 미쳐 최종적으로는 간접적으로 종자에 영향을 미치는지에 대한 내용을 발표했습니다. p.s. 팜플로나의 야경

Creating Stacked Bar Graphs in R Studio: A Step-by-Step Guide

Today, I’ll be introducing how to create stacked bar graphs using R Studio. To start, I will generate a data table as shown below. I’ll make stacked bar graphs using this data table. First of all, it’s necessary to summarize the data. I’ll use ddply() function. If I use this code, the error message pops … Read more

예이다 La Seu Vella (라 세우 벨라)

박사 논문 막바지 단계에 있습니다. 사무실에서 일하다가 기분전환이나 할겸 예이다에서 가장 유명한 (사실 유일한) 관광지인 La Seu Vella 를 다녀왔습니다. La Seu Vella 를 올라갈수 있는 길은 여러곳이 있습니다만 저는 개인적으로 여기가 공식적인 정문이라고 생각하고 있습니다. La Seu Vella 에 올라가면 예이다 시내를 한눈에 볼수 있습니다. 그래서 가끔 여기 와서 도시 풍경 보는 것을 좋아합니다. … Read more

How to conduct Least Significant difference (LSD) test using R STUDIO?

For the mean comparison among variables, Least Significant difference (LSD) test is the most common method. Today I’ll introduce LSD test using R Studio. Here is one data. This data is about the yield difference of CV1 in response to 4 different nitrogen fertilizer (N0 ,N1, N2, N3). First of all, let’s check the mean … Read more

[스페인 농업일기] 스페인 카탈루냐 지역 2021년 밀 수확

2021년 겨울밀 수확 현장에 참여했습니다. 횟수로는 4년째 스페인에서 밀 수확 현장에 참여하고 있습니다. 올해 저는 필드실험이 없어서 아주 오랜만에 필드 방문이기도 해서 더욱더 기분이 좋았던 하루 였습니다 아주 뜨거운 날씨입니다. 밀은 아주 잘 익어서 밀 이삭 역시 고개를 숙이고 있습니다. 파종을 작년 11월 중순에 했으니 7개월 정도 잘 자라 주었습니다. 필드 연구는 언제나 즐겁습니다.

Graph Partitioning Using facet_wrap() in R Studio

While creating graphs, you can certainly draw multiple graphs in a single panel. However, you can also use the facet_wrap() function to divide graphs based on specific variables. First, let’s generate a dataset. I intend to create a bar graph using this data. Therefore, I need to summarize the data. To do this, I must … Read more

Utilizing stat_summary() in R Studio to Summarize Data Graphically

When creating graphs using data, especially those involving error bars, it is necessary to calculate the standard error by summarizing the data. There are various methods to summarize the data. □ Utilizing R Studio for Data Grouping and Mean/Standard Error Calculation (feat ddply) Today I will introduce a method of creating graphs all at once … Read more

노먼 볼로그와 녹색혁명 이야기 (20세기 밀 수확량은 어떻게 증가했는가?)

20세기 후반 밀 수확량은 어떻게 증가 하였을까? 이 이야기는 1935년으로 거슬러 올라갑니다. 당시 일본의 밀 육종가 곤지로 이나주카 (Gonjiro Inazuka) 는 일본의 반왜성 (semi-dwarf) 야생 품종과 두개의 미국 밀 품종을 교배하여 노린 10 [小麦農林10号] 이라는 새로운 밀 품종을 개발합니다. 일본어로 노린은 ‘농림’ 이라는 뜻이라고 합니다. 반왜성[半矮性]: 식물 육종에서 보통의 품종보다 줄기의 길이가 짧거나 키가 작지만 왜성처럼 극단적이지 않은 상태 Daruma 는 줄기가 짧은 일본 고유 품종이었고 … Read more

Stacking Data Vertically from Multiple Columns in R Studio (feat. reshape package)

Previously, I posted about how to change the data structure in the following scenario. □ Combining Factors from Separate Datasets into a Single Column Using R Studio (feat. dplyr package) This time, I will introduce a method for changing the structure of data as shown below. Specifically, this is about cases where there are multiple … Read more

[스페인 농업일기] 스페인 카탈루냐 지역 작은 농장 스토리

Farmer España 라는 앱에서 소개한 스페인 카탈루냐 지역에 작은 농장 스토리 입니다. 농부라는 직업을 이렇게 매력적으로 묘사하는 영상을 오랜만에 봅니다. 영상미부터 스토리까지 농부가 되고 싶게 만드는 영상을 보며 이런게 문화의 힘인가 싶고, 개인적으로는 카탈루냐 지역 농업이 이런 면을 많이 부각시키는 듯 합니다. 영상이 너무 이뻐서 영상 내용을 번역하여 소개합니다. Hericamps es nuestro proyecto agroecológico de … Read more

Combining Factors from Separate Datasets into a Single Column Using R Studio (feat. dplyr package)

When data is divided into two separate datasets, it needs to be combined into a single column. Using R, we can simply combine the two datasets. I will create a simple dataset. Now I will combine these two datasets into one. 1) using data.frame() To explain the below code simply, we are using the function … Read more

Utilizing R Studio for Data Grouping and Mean/Standard Error Calculation (feat ddply)

The function I will introduce today is ddply(). This function is convenient for summarizing large amounts of data and can also calculate standard errors, making it easy to create bar graphs. First, install the package. Once the installation is complete, let’s upload some data. This dataset consists of results from cultivating 4 genotypes under 4 … Read more

[JK column #131] Keywords

Sunday, January 03, 2021 Couple days ago, I visited a store to buy a small stapler. As I was about to leave after purchasing it, I noticed the book section in the corner of the store and decided to check it out. All the books were in Spanish, and to be honest, I usually don’t … Read more

Performing a Two-Way ANOVA with Blocks using R Studio

I’ll upload one data in R. I have 10 corn varieties and want to analyze the impact of nitrogen treatments (N0 and N1), variety, and their interaction on grain yield. Since replicates are considered as blocks, I will conduct a two-way ANOVA analysis with blocks as the statistical model. The statistical model for two-way ANOVA … Read more