# [R] lattice and several groups

Thu Aug 31 00:07:06 CEST 2006

```> In fact, my problem is to fit the data for every level of the f2 factor,
> showing the levels of the f1 factor and that for several surveys .
> Here's an example closer to my actual data :

Then maybe you want:
qplot(x, y, . ~ surveys, data=df, type="line", colour=f1, id=f2, size=f2)

(which doesn't produce a very nice legend)

Or to build up piece by piece
p <- ggplot(df, . ~ surveys, aes=list(x=x, y=y, colour=f1, id=f2))
p <- ggline(p)
ggpoint(p, aes=list(shape=f2))

(you might want to flip shape and colour around to get what you want)
{"ft_lang_label":"__label__en","ft_lang_prob":0.8627652,"math_prob":0.9424571,"size":694,"snap":"2020-45-2020-50","text_gpt3_token_len":205,"char_repetition_ratio":0.089855075,"word_repetition_ratio":0.0,"special_character_ratio":0.30115274,"punctuation_ratio":0.15189873,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9805523,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-10-25T22:48:18Z\",\"WARC-Record-ID\":\"<urn:uuid:3c39fd6e-0371-4377-addf-c4048485b95f>\",\"Content-Length\":\"3002\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:c799e90a-9c1b-4473-a120-f493300f4ce2>\",\"WARC-Concurrent-To\":\"<urn:uuid:7f70c417-1184-46c0-ae88-c53aeef51dd0>\",\"WARC-IP-Address\":\"129.132.119.195\",\"WARC-Target-URI\":\"https://www.stat.math.ethz.ch/pipermail/r-help/2006-August/112079.html\",\"WARC-Payload-Digest\":\"sha1:3ARQ5H7TM4ZOD4AQQICXANCZ6NZFLRCG\",\"WARC-Block-Digest\":\"sha1:KCWGOJO2WXB6HPFOBU5DGXLGVLWMDG2D\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-45/CC-MAIN-2020-45_segments_1603107890028.58_warc_CC-MAIN-20201025212948-20201026002948-00007.warc.gz\"}"}