.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/data_analysis/plot_cd4.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_data_analysis_plot_cd4.py: CD4 dataset ============ .. GENERATED FROM PYTHON SOURCE LINES 6-17 .. code-block:: Python # Author: Steven Golovkine # License: MIT # Load packages import matplotlib.pyplot as plt import numpy as np from FDApy import read_csv from FDApy.visualization import plot .. GENERATED FROM PYTHON SOURCE LINES 18-19 In this section, we will use the CD4 dataset to illustrate the use of the package concerning irregularly sampled functional data. The dataset contains CD4 counts for :math:`366` patients. The dataset can be downloaded from the `here `_. This is an example of a :class:`~FDApy.representation.IrregularFunctionalData` object. It also shows how the CSV file should be formatted and can be read using the :func:`~FDApy.read_csv` function. .. GENERATED FROM PYTHON SOURCE LINES 19-25 .. code-block:: Python # Load data cd4_data = read_csv("../data/cd4.csv", index_col=0) _ = plot(cd4_data) plt.show() .. image-sg:: /auto_examples/data_analysis/images/sphx_glr_plot_cd4_001.png :alt: plot cd4 :srcset: /auto_examples/data_analysis/images/sphx_glr_plot_cd4_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 1.730 seconds) .. _sphx_glr_download_auto_examples_data_analysis_plot_cd4.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_cd4.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_cd4.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_cd4.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_