
In this lecture, students will learn how to use sample R code to create publication-ready graphs and tables for research and manuscript writing. The lecture shows how to organize analysis output, prepare clean visualizations, and format results in a clear and professional way. After completing this lecture, students will be able to apply R code to produce graphs and tables suitable for reports, theses, journal articles, and academic presentations.
An introduction to the course structure, what you will learn, and how this course will help you move from data analysis to manuscript writing.
Learn how to select a relevant, feasible, and impactful research topic based on your interest and available data.
Understand how to convert your research idea into clear research questions and measurable objectives.
Learn how to write a clear and informative working title that reflects your study design, population, and key variables.
Apply your learning by creating a simple research title, objectives, and a basic analysis plan using MS Word.
Learn how to open RStudio and install essential R packages required for data analysis.
Import an Excel data set into R using read_excel, copying the file path, adjusting the path slashes, and viewing the six-variable data set.
Create your first boxplot to visualize data and understand basic plotting in R.
Learn how to produce summary statistics and simple tables for data exploration.
Understand how to keep or remove variables from your dataset for analysis.
Learn how to generate new variables based on existing data for further analysis.
Use the pipe operator to write clean, efficient, and readable R code.
Learn how to search scientific literature efficiently using PubMed to identify relevant research articles.
Understand how to find additional studies by reviewing references from selected research papers.
Learn how to organize, store, and manage references using EndNote for your research work.
Identify important variables for your study based on previous research and expert recommendations.
Get a basic understanding of sample size concepts and why it is important for reliable research findings.
Learn how to structure and prepare your dataset in Excel or CSV format for analysis in R.
Learn how to import Excel data into R and verify that the dataset is loaded correctly.
Understand how to convert character variables into factors for proper statistical analysis.
Learn how to set reference categories for categorical variables in regression analysis.
Learn how to assign meaningful labels to variables for clearer interpretation and reporting.
Create a boxplot to visualize the distribution of a continuous outcome variable.
Learn how to format boxplots using geom_boxplot() for better visualization.
Improve your plots by adding titles, labels, themes, and legends.
Learn how to export and save your plots for reports and publications.
Customize font size and overall appearance for publication-quality figures.
Visualize categorical data using bar charts with a real-world example.
Export bar charts with proper formatting for use in manuscripts and presentations.
Learn how to generate summary tables for single variables and relationships between variables.
Understand how to compute basic descriptive statistics for continuous and categorical variables.
Learn how to control decimal places and improve table presentation.
Create complete summary tables with overall statistics and clear variable labels.
Conduct chi-square tests to examine associations between categorical variables.
Learn how to export formatted tables directly into Word for reports and manuscripts.
Prepare your dataset for logistic regression by selecting variables and checking data structure.
Run a basic logistic regression model to examine the association between exposure and outcome.
Understand how to interpret odds ratios, confidence intervals, and p-values.
Perform regression analysis for each independent variable separately.
Select important variables for multivariable analysis using statistical and theoretical criteria.
Generate clean tables showing crude associations for reporting.
Build multivariable models and present adjusted results clearly.
Combine crude and adjusted results into a single publication-ready table.
Learn how to insert and format regression tables in your research manuscript.
How to write result of a manuscript. In this section, we will discuss how to write the result part of a manuscript
First, we have to present the main findings of the study, like the distribution of key variables
Generally, we use the prevalence, percentages, and averages, often shown in tables and figures.
Then, we present the associations between variables using statistical models such as linear regression or logistic regression or poisson regression or survival analysis.
Learn how to describe sample characteristics clearly using summary tables (e.g., age, sex, socio-demographic variables).
Learn how to present regression results, including odds ratios, confidence intervals, and p-values in a clear and scientific way.
Learn how to summarize the key findings of your study clearly and concisely.
Understand how to compare your results with existing literature and highlight similarities or differences.
Learn how to provide logical and evidence-based explanations for your results.
Explain the practical, clinical, or policy relevance of your study findings.
Learn how to present study strengths and limitations and write a clear, impactful conclusion.
Learn how to write a clear and structured methods section, including study design, data source, variables, and statistical analysis.
Data Analysis in R & Manuscript Writing
This course is designed for students, researchers, and professionals who want to learn data analysis in R and manuscript writing for publication in a practical, step-by-step approach.
You will begin with data preparation, data cleaning, and data management in R using real-world datasets. The course then covers descriptive analysis, data visualization with ggplot2, and statistical modeling, including logistic regression analysis and interpretation of results such as odds ratios, confidence intervals, and p-values.
In addition to analysis, this course focuses on scientific writing and research paper writing. You will learn how to write each section of a manuscript, including introduction, methods, results, and discussion, based on your own analysis outputs. You will also learn how to create publication-ready tables and export results to Word for reporting.
The course includes literature review using PubMed, reference management using EndNote, and variable selection based on previous studies and expert knowledge. You will also learn how to write the abstract, acknowledgment, funding information, and author contributions.
This is a hands-on R programming course with minimal theory and strong practical focus. By the end, you will be able to analyze data and prepare a complete research manuscript ready for publication.